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, 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

#executeObject



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