Class: Albacore::TestRunner::Cmd
- Inherits:
-
Object
- Object
- Albacore::TestRunner::Cmd
- Includes:
- CrossPlatformCmd
- Defined in:
- lib/albacore/task_types/test_runner.rb
Constant Summary
Constants included from CrossPlatformCmd
CrossPlatformCmd::KILL_TIMEOUT
Instance Attribute Summary
Attributes included from CrossPlatformCmd
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(work_dir, executable, parameters, file, clr_command = true) ⇒ Cmd
constructor
expects both parameters and executable to be relative to the work_dir parameter.
Methods included from CrossPlatformCmd
#chdir, #make_command, #normalise_slashes, #sh, #shie, #stop, #system, #which
Methods included from Logging
#debug, #err, #error, #fatal, #info, #puts, #trace, #warn
Constructor Details
#initialize(work_dir, executable, parameters, file, clr_command = true) ⇒ Cmd
expects both parameters and executable to be relative to the work_dir parameter
65 66 67 68 69 |
# File 'lib/albacore/task_types/test_runner.rb', line 65 def initialize work_dir, executable, parameters, file, clr_command = true @work_dir, @executable = work_dir, executable @parameters = parameters.to_a.unshift(file) @clr_command = clr_command end |
Instance Method Details
#execute ⇒ Object
71 72 73 74 75 76 77 |
# File 'lib/albacore/task_types/test_runner.rb', line 71 def execute info { "executing in directory './#{@work_dir}'" } system @executable, @parameters, :work_dir => @work_dir, :clr_command => @clr_command end |