Sha256: 5edd5d94616e1eee60e5589e8328835b3fb3d7cf351c0dd65a71d02095677bc8

Contents?: true

Size: 368 Bytes

Versions: 47

Compression:

Stored size: 368 Bytes

Contents

require 'cloud66_agent/utils/server'

module Cloud66
	module Commands
		class JobStart
			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
		end
	end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
cloud66_agent-1.2.0 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.1.2 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.1.2.beta2 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.1.2.beta1 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.1.1 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.1.1.beta1 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.1.0 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.1.0.beta4 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.1.0.beta3 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.1.0.beta2 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.1.0.beta1 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.0.12 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.0.12.pre1 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.0.11 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.0.10 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.0.9 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.0.8 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.0.8.pre1 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.0.7.pre1 lib/cloud66_agent/commands/job_start.rb
cloud66_agent-1.0.7 lib/cloud66_agent/commands/job_start.rb