bin/cloud66_agent in cloud66_agent-1.1.1 vs bin/cloud66_agent in cloud66_agent-1.1.2.beta1
- old
+ new
@@ -43,16 +43,18 @@
end
# handle commands
$logger.info "Attempting: \"#{command}\""
if command == 'configure'
+ cloud = nil
OptionParser.new do |opts|
opts.on('--api-url [URL]', 'API URL') { |v| $config.api_url = v }
opts.on('--api-key API_KEY', 'API key') { |v| $config.api_key = v }
opts.on('--secret-key SECRET_KEY', 'Secret key') { |v| $config.secret_key = v }
opts.on('--server-uid SERVER_UID', 'Server UID') { |v| @server_uid = v }
+ opts.on('--cloud', 'Internal IP sourcing') { |v| cloud = v }
end.order!
- Cloud66Agent.configure(@server_uid)
+ Cloud66Agent.configure(@server_uid, cloud)
elsif command == 'job_start'
OptionParser.new do |opts|
opts.on('--job-uid JOB_UID', 'Job UID') { |v| @job_uid = v }
end.order!
Cloud66Agent.job_start(@job_uid)