vmc-ng/lib/vmc/cli/app.rb in vmc-0.4.0.beta.1 vs vmc-ng/lib/vmc/cli/app.rb in vmc-0.4.0.beta.2
- old
+ new
@@ -90,11 +90,11 @@
desc "start APPS...", "Start an application"
group :apps, :manage
flag :name
flag :debug_mode
def start(*names)
- if name = input(:name)
+ if name = passed_value(:name)
names = [name]
end
fail "No applications given." if names.empty?
@@ -126,11 +126,11 @@
desc "stop APPS...", "Stop an application"
group :apps, :manage
flag :name
def stop(*names)
- if name = input(:name)
+ if name = passed_value(:name)
names = [name]
end
fail "No applications given." if names.empty?
@@ -207,11 +207,11 @@
desc "instances APPS...", "List an app's instances"
group :apps, :info, :hidden => true
flag :name
def instances(*names)
- if name = input(:name)
+ if name = passed_value(:name)
names = [name]
end
fail "No applications given." if names.empty?
@@ -336,10 +336,10 @@
desc "health ...APPS", "Get application health"
group :apps, :info, :hidden => true
flag :name
def health(*names)
- if name = input(:name)
+ if name = passed_value(:name)
names = [name]
end
apps =
with_progress("Getting application health") do