Class: Testjour::CLI::SlaveStop

Inherits:
BaseCommand show all
Defined in:
lib/testjour/commands/slave_stop.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#non_options, #options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseCommand

detailed_help, help, #option_parser, options

Constructor Details

#initialize(*args) ⇒ SlaveStop

Returns a new instance of SlaveStop.



12
13
14
15
# File 'lib/testjour/commands/slave_stop.rb', line 12

def initialize(*args)
  Testjour.logger.debug "Runner command #{self.class}..."
  super
end

Class Method Details

.commandObject



8
9
10
# File 'lib/testjour/commands/slave_stop.rb', line 8

def self.command
  "slave:stop"
end

Instance Method Details

#runObject



17
18
19
20
# File 'lib/testjour/commands/slave_stop.rb', line 17

def run
  pid_file = PidFile.new("./testjour_slave.pid")
  pid_file.send_signal("TERM")
end