lib/vmc/client.rb in vmc-0.3.14 vs lib/vmc/client.rb in vmc-0.3.15.beta.1
- old
+ new
@@ -102,9 +102,11 @@
end
upload_data[:application] = file
end
upload_data[:resources] = resource_manifest.to_json if resource_manifest
http_post("#{VMC::APPS_PATH}/#{name}/application", upload_data)
+ rescue RestClient::ServerBrokeConnection
+ retry
end
def delete_app(name)
check_login_status
http_delete("#{VMC::APPS_PATH}/#{name}")