Class: Albacore::TestRunner::Cmd

Inherits:
Object
  • Object
show all
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

#pid

Instance Method Summary collapse

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) ⇒ Cmd

expects both parameters and executable to be relative to the work_dir parameter



55
56
57
58
# File 'lib/albacore/task_types/test_runner.rb', line 55

def initialize work_dir, executable, parameters, file
  @work_dir, @executable = work_dir, executable
  @parameters = parameters.to_a.unshift(file)
end

Instance Method Details

#executeObject



60
61
62
63
64
65
66
# File 'lib/albacore/task_types/test_runner.rb', line 60

def execute
  info { "executing in directory './#{@work_dir}'" }
  system @executable,
    @parameters,
    :work_dir    => @work_dir,
    :clr_command => true
end