Class: Testjour::CLI::SlaveStop
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Testjour::CLI::SlaveStop
- Defined in:
- lib/testjour/commands/slave_stop.rb
Instance Attribute Summary
Attributes inherited from BaseCommand
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ SlaveStop
constructor
A new instance of SlaveStop.
- #run ⇒ Object
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
.command ⇒ Object
8 9 10 |
# File 'lib/testjour/commands/slave_stop.rb', line 8 def self.command "slave:stop" end |
Instance Method Details
#run ⇒ Object
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 |