aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/deploy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/leap_cli/commands/deploy.rb')
-rw-r--r--lib/leap_cli/commands/deploy.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/deploy.rb b/lib/leap_cli/commands/deploy.rb
index c2f98b8..337ef4d 100644
--- a/lib/leap_cli/commands/deploy.rb
+++ b/lib/leap_cli/commands/deploy.rb
@@ -15,13 +15,13 @@ module LeapCli
c.arg_name 'TAG[,TAG]'
c.flag :tags
- c.action do |global_options,options,args|
+ c.action do |global,options,args|
init_submodules
nodes = manager.filter!(args)
if nodes.size > 1
say "Deploying to these nodes: #{nodes.keys.join(', ')}"
- unless agree "Continue? "
+ if !global[:yes] && !agree("Continue? ")
quit! "OK. Bye."
end
end