Class: Epi::Daemon::Responders::StopAll
- Inherits:
-
Epi::Daemon::Responder
- Object
- Epi::Daemon::Responder
- Epi::Daemon::Responders::StopAll
- Defined in:
- lib/epi/daemon/responders/stop_all.rb
Instance Attribute Summary
Attributes inherited from Epi::Daemon::Responder
Instance Method Summary collapse
Methods inherited from Epi::Daemon::Responder
#done, #initialize, #logger, #puts, #run, run
Constructor Details
This class inherits a constructor from Epi::Daemon::Responder
Instance Method Details
#run_async ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/epi/daemon/responders/stop_all.rb', line 7 def run_async count = Jobs.running_process_count if count > 0 puts "Stopping #{count} process#{count == 1 ? '' : 'es'} ..." Jobs.shutdown! { done } else done end end |