Class: Rscons::Script::ConfigureDsl

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

Overview

DSL available to the 'configure' block.

Instance Method Summary collapse

Methods inherited from GlobalDsl

#path_append, #path_components, #path_prepend, #path_set, #rscons

Constructor Details

#initialize(configure_op) ⇒ ConfigureDsl

Create a ConfigureDsl.

Parameters:

  • configure_op (ConfigureOp)

    The configure operation object.



146
147
148
# File 'lib/rscons/script.rb', line 146

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:



174
175
176
177
# File 'lib/rscons/script.rb', line 174

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