Class: RightConf::ExecuteConfigurator

Inherits:
Object
  • Object
show all
Includes:
Configurator
Defined in:
lib/rconf/configurators/execute_configurator.rb

Instance Method Summary collapse

Methods included from Configurator

#[], #check, included, #post_process, #run, #signature, #validate

Methods included from ProgressReporter

included, report_to_file, report_to_stdout

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RightConf::Configurator

Instance Method Details

#check_linuxObject Also known as: check_darwin, check_windows

No way to check, return false

Return

false

Always return false



33
34
35
# File 'lib/rconf/configurators/execute_configurator.rb', line 33

def check_linux
  false
end

#run_linuxObject Also known as: run_darwin

Run command line

Return

true

Always return true



43
44
45
46
47
48
49
50
# File 'lib/rconf/configurators/execute_configurator.rb', line 43

def run_linux
  report_check message if message
  args = command_line.split(' ')
  args += [ { :abort_on_failure => abort_on_failure } ] if abort_on_failure
  Command.execute(*args)
  report_success if message
  true
end

#run_windowsObject

Run command line on Windows

Return

true

Always return true



57
58
59
# File 'lib/rconf/configurators/execute_configurator.rb', line 57

def run_windows
  true # TBD
end