From 8168934403904c5793bbe9700dde0321cae66d0f Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 20 Jun 2014 01:25:28 -0700 Subject: added `leap deploy --dev` which will skip `git submodule update` --- lib/leap_cli/commands/deploy.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3