def run
begin
if combo_implemented?
if !@options[:id].empty? && pushed?(@options[:id])
puts "ERROR: This image has already been pushed, to push to another provider please push via build-id rather than image-id"
puts "e.g. aeolus-image push --provider <provider> --build <build-id>"
quit(1)
end
sleep(5)
@console.push(@options[:provider], get_creds, @options[:id], @options[:build]).each do |adaptor|
puts ""
puts "Provider Image: #{adaptor.image_id}"
puts "Image: #{adaptor.image}"
puts "Build: #{adaptor.build}"
puts "Status: #{adaptor.status}"
puts "Percent Complete: #{adaptor.percent_complete}"
end
quit(0)
end
rescue
puts "An Error occured whilst trying to push this build, please check aeolus-image --help for details on how to use this command"
quit(1)
end
end