diff options
author | elijah <elijah@riseup.net> | 2013-02-07 00:38:50 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-02-07 00:38:50 -0800 |
commit | 8795fe0c766e85f331084ea2580d1ad4c2890e7f (patch) | |
tree | d5b7f8b3df11c388c62eb5e501c514df3850b6f7 /lib/leap_cli/commands/deploy.rb | |
parent | 6bfcfb412bdee4ea413aeab4f8ce28fe775d9372 (diff) |
added global --yes option
Diffstat (limited to 'lib/leap_cli/commands/deploy.rb')
-rw-r--r-- | lib/leap_cli/commands/deploy.rb | 4 |
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 |