Class: Perus::Pinger::KillProcess
- Defined in:
- lib/perus/pinger/commands/kill_process.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
abstract!, abstract?, #cleanup, #darwin?, description, human_name, inherited, #initialize, metric!, metric?, option, options, #shell, subclasses
Constructor Details
This class inherits a constructor from Perus::Pinger::Command
Instance Method Details
#run ⇒ Object
8 9 10 11 |
# File 'lib/perus/pinger/commands/kill_process.rb', line 8 def run result = shell("killall -#{.signal} #{.process_name}") true # shell will capture any errors end |