Class: Cloud66::Commands::JobStart
- Inherits:
-
Object
- Object
- Cloud66::Commands::JobStart
- 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.}" exit -1 end |