Class: Perus::Pinger::UpstartStart
- Defined in:
- lib/perus/pinger/commands/upstart_start.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
7 8 9 10 |
# File 'lib/perus/pinger/commands/upstart_start.rb', line 7 def run result = shell("sudo start #{.job}") true # shell will capture any errors end |