Class: Epi::Daemon::Responders::Start

Inherits:
Epi::Daemon::Responder show all
Defined in:
lib/epi/daemon/responders/start.rb

Instance Attribute Summary

Attributes inherited from Epi::Daemon::Responder

#receiver

Instance Method Summary collapse

Methods inherited from Epi::Daemon::Responder

#done, #initialize, #logger, #puts, run

Constructor Details

This class inherits a constructor from Epi::Daemon::Responder

Instance Method Details

#runObject



7
8
9
10
11
12
13
14
# File 'lib/epi/daemon/responders/start.rb', line 7

def run
  count = Jobs.running_process_count
  if count == 0
    'Starting ...'
  else
    "Starting #{count} process#{count == 1 ? '' : 'es'} ..."
  end
end