diff options
author | elijah <elijah@riseup.net> | 2013-01-30 22:26:07 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-01-30 22:26:07 -0800 |
commit | e8287833452d040b043b90335f86a115216f99ec (patch) | |
tree | e32f08302f36b5947688f9b809d9e1d28bd7f613 | |
parent | 62dfe5a61b547179babb815245bb8a0e3ea14f6f (diff) | |
download | leap_cli-e8287833452d040b043b90335f86a115216f99ec.tar.gz leap_cli-e8287833452d040b043b90335f86a115216f99ec.tar.bz2 |
added 'leap deploy --fast'
-rw-r--r-- | lib/leap_cli/commands/deploy.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/deploy.rb b/lib/leap_cli/commands/deploy.rb index 1071208..818e08e 100644 --- a/lib/leap_cli/commands/deploy.rb +++ b/lib/leap_cli/commands/deploy.rb @@ -6,6 +6,7 @@ module LeapCli long_desc 'The node-filter can be the name of a node, service, or tag.' arg_name 'node-filter' command :deploy do |c| + c.switch :fast, :desc => 'Makes the deploy command faster by skipping some slow steps. A "fast" deploy can be used safely if you have done a normal deploy to the node recently.', :negatable => false c.action do |global_options,options,args| init_submodules @@ -32,7 +33,9 @@ module LeapCli # sync puppet manifests and apply them ssh.set :puppet_source, [Path.platform, 'puppet'].join('/') ssh.set :puppet_destination, '/srv/leap' - ssh.set :puppet_command, '/usr/bin/puppet apply --color=false' + tags = ['default'] + tags << 'slow' unless options[:fast] + ssh.set :puppet_command, "/usr/bin/puppet apply --color=false --tags=#{tags.join(', ')}" ssh.set :puppet_lib, "puppet/modules" ssh.set :puppet_parameters, '--libdir puppet/lib --confdir puppet puppet/manifests/site.pp' ssh.set :puppet_stream_output, true |