Class: RightConf::ExecuteConfigurator
- Inherits:
-
Object
- Object
- RightConf::ExecuteConfigurator
- Includes:
- Configurator
- Defined in:
- lib/rconf/configurators/execute_configurator.rb
Instance Method Summary collapse
-
#check_linux ⇒ Object
(also: #check_darwin, #check_windows)
No way to check, return false.
-
#run_linux ⇒ Object
(also: #run_darwin)
Run command line.
-
#run_windows ⇒ Object
Run command line on Windows.
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_linux ⇒ Object 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_linux ⇒ Object 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 if args = command_line.split(' ') args += [ { :abort_on_failure => abort_on_failure } ] if abort_on_failure Command.execute(*args) report_success if true end |
#run_windows ⇒ Object
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 |