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
80 81 82 83 84 |
# File 'lib/albacore/task_types/test_runner.rb', line 80 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
86 87 88 89 90 91 92 |
# File 'lib/albacore/task_types/test_runner.rb', line 86 def execute info { "executing in directory '#{@work_dir}'" } system @executable, @parameters, :work_dir => @work_dir, :clr_command => @clr_command end |