Class: Rscons::Script::ConfigureDsl

Inherits:
Object
  • Object
show all
Defined in:
lib/rscons/script.rb

Overview

DSL available to the 'configure' block.

Instance Method Summary collapse

Constructor Details

#initialize(configure_op) ⇒ ConfigureDsl

Create a ConfigureDsl.

Parameters:

  • configure_op (ConfigureOp)

    The configure operation object.



67
68
69
# File 'lib/rscons/script.rb', line 67

def initialize(configure_op)
  @configure_op = configure_op
end

Instance Method Details

#custom_check(message) {|configure_op| ... } ⇒ void

This method returns an undefined value.

Perform a custom configuration check.

Parameters:

  • message (String)

    Custom configuration check message (e.g. “Checking for foo”). rscons will add “… ” to the end of the message.

Yield Parameters:



95
96
97
98
# File 'lib/rscons/script.rb', line 95

def custom_check(message, &block)
  $stdout.write(message + "... ")
  block[@configure_op]
end