vmc-ng/lib/vmc/cli/app.rb in vmc-0.4.0.beta.74 vs vmc-ng/lib/vmc/cli/app.rb in vmc-0.4.0.beta.75
- old
+ new
@@ -165,13 +165,10 @@
end
app.start!
end
- # TODO: reenable for v2
- next if v2?
-
check_application(app)
if app.debug_mode && !quiet?
line
invoke :instances, :app => app
@@ -961,12 +958,10 @@
with_progress("Creating #{c(app.name, :name)}") do
app.create!
end
- invoke :map, :app => app, :url => url if url && v2?
-
bindings = []
if input[:create_services] && !force?
while true
invoke :create_service, { :app => app }, :plan => :interact
@@ -994,9 +989,11 @@
err "Upload failed. Try again with 'vmc push'."
raise
end
invoke :start, :app => app if input[:start]
+
+ invoke :map, :app => app, :url => url if url && v2?
end
def upload_app(app, path)
with_progress("Uploading #{c(app.name, :name)}") do
app.upload(path)