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



31
32
33
# File 'lib/rconf/configurators/execute_configurator.rb', line 31

def check_linux
  false
end

#run_linuxObject Also known as: run_darwin

Run command line

Return

true

Always return true



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

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



55
56
57
# File 'lib/rconf/configurators/execute_configurator.rb', line 55

def run_windows
  true # TBD
end