From 11c182aeee2b0ef83ee8b3986583a2c657a9b6f8 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 10 Dec 2013 11:08:39 -0800 Subject: added `--sync` to deploy. --- lib/leap_cli/commands/deploy.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/leap_cli/commands/deploy.rb b/lib/leap_cli/commands/deploy.rb index 61323c9..310fcca 100644 --- a/lib/leap_cli/commands/deploy.rb +++ b/lib/leap_cli/commands/deploy.rb @@ -11,6 +11,9 @@ module LeapCli c.switch :fast, :desc => 'Makes the deploy command faster by skipping some slow steps. A "fast" deploy can be used safely if you recently completed a normal deploy.', :negatable => false + # --sync + c.switch :sync, :desc => "Sync files, but don't actually apply recipes." + # --force c.switch :force, :desc => 'Deploy even if there is a lockfile.', :negatable => false @@ -49,8 +52,10 @@ module LeapCli ssh.leap.log :synching, "puppet manifests" do sync_puppet_files(ssh) end - ssh.leap.log :applying, "puppet" do - ssh.puppet.apply(:verbosity => LeapCli.log_level, :tags => tags(options), :force => options[:force]) + unless options[:sync] + ssh.leap.log :applying, "puppet" do + ssh.puppet.apply(:verbosity => LeapCli.log_level, :tags => tags(options), :force => options[:force]) + end end end end -- cgit v1.2.3