summaryrefslogtreecommitdiff
path: root/lib/leap_cli
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-06-20 01:25:28 -0700
committerelijah <elijah@riseup.net>2014-06-20 01:25:28 -0700
commit8168934403904c5793bbe9700dde0321cae66d0f (patch)
treed26903dc93453ec4803397328b4448bede1c3041 /lib/leap_cli
parent3ddd8e93a161d748e5703b0856cb2eded0dd19c5 (diff)
added `leap deploy --dev` which will skip `git submodule update`
Diffstat (limited to 'lib/leap_cli')
-rw-r--r--lib/leap_cli/commands/deploy.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/deploy.rb b/lib/leap_cli/commands/deploy.rb
index 814407f..c214889 100644
--- a/lib/leap_cli/commands/deploy.rb
+++ b/lib/leap_cli/commands/deploy.rb
@@ -17,6 +17,9 @@ module LeapCli
# --force
c.switch :force, :desc => 'Deploy even if there is a lockfile.', :negatable => false
+ # --dev
+ c.switch :dev, :desc => "Development mode: don't run 'git submodule update' before deploy.", :negatable => false
+
# --tags
c.flag :tags, :desc => 'Specify tags to pass through to puppet (overriding the default).',
:default_value => DEFAULT_TAGS.join(','), :arg_name => 'TAG[,TAG]'
@@ -28,7 +31,10 @@ module LeapCli
:arg_name => 'IPADDRESS'
c.action do |global,options,args|
- init_submodules
+
+ if options[:dev] != true
+ init_submodules
+ end
nodes = filter_deploy_nodes(args)
if nodes.size > 1
@@ -58,6 +64,7 @@ module LeapCli
end
end
end
+
end
end