Class: Cloud66::Commands::JobStart

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud66_agent/commands/job_start.rb

Class Method Summary collapse

Class Method Details

.perform(job_uid) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/cloud66_agent/commands/job_start.rb', line 6

def self.perform(job_uid)
  result = Utils::Server.send_job_start(job_uid)
  # this is the response value for the script
  puts result['run_uid']
  exit 0
rescue => exc
  $logger.error "Command \"job_start\" failed: #{exc.message}"
  exit -1
end