aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/deploy.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-09-30 13:36:26 -0700
committerelijah <elijah@riseup.net>2014-09-30 13:36:26 -0700
commita5b77fa30ed5548978c0907b74ba986cdbf6c11a (patch)
treefad9db58d566fb3cc2b4a605bc941ea580dfb1a9 /lib/leap_cli/commands/deploy.rb
parent410b5d793e8b8ee0abd42b581f09d8c7d5721ed3 (diff)
downloadleap_cli-a5b77fa30ed5548978c0907b74ba986cdbf6c11a.tar.gz
leap_cli-a5b77fa30ed5548978c0907b74ba986cdbf6c11a.tar.bz2
environment pinning: new commands `leap env`, `leap env pin X` and `leap env unpin`. See `leap help env` for more information.
Diffstat (limited to 'lib/leap_cli/commands/deploy.rb')
-rw-r--r--lib/leap_cli/commands/deploy.rb14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/leap_cli/commands/deploy.rb b/lib/leap_cli/commands/deploy.rb
index 553b2b1..bd1f479 100644
--- a/lib/leap_cli/commands/deploy.rb
+++ b/lib/leap_cli/commands/deploy.rb
@@ -36,7 +36,7 @@ module LeapCli
init_submodules
end
- nodes = filter_deploy_nodes(args)
+ nodes = manager.filter!(args)
if nodes.size > 1
say "Deploying to these nodes: #{nodes.keys.join(', ')}"
if !global[:yes] && !agree("Continue? ")
@@ -253,17 +253,5 @@ module LeapCli
tags.join(',')
end
- #
- # for safety, we allow production deploys to be turned off in the Leapfile.
- #
- def filter_deploy_nodes(filter)
- nodes = manager.filter!(filter)
- if !leapfile.allow_production_deploy
- nodes = nodes[:environment => "!production"]
- assert! nodes.any?, "Skipping deploy because @allow_production_deploy is disabled."
- end
- nodes
- end
-
end
end