Class: Bosh::Agent::Message::Start

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh_agent/handler.rb

Class Method Summary collapse

Class Method Details

.process(args) ⇒ Object



425
426
427
428
429
430
431
432
433
434
435
# File 'lib/bosh_agent/handler.rb', line 425

def self.process(args)

  if Config.configure
    Bosh::Agent::Monit.start_services
  end

  'started'

rescue => e
  raise Bosh::Agent::MessageHandlerError, "Cannot start job: #{e}"
end