lib/leap_cli/commands/deploy.rb in leap_cli-1.2.5 vs lib/leap_cli/commands/deploy.rb in leap_cli-1.5.0

- old
+ new

@@ -9,10 +9,13 @@ # --fast 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 # --tags c.flag :tags, :desc => 'Specify tags to pass through to puppet (overriding the default).', @@ -47,11 +50,13 @@ sync_support_files(ssh) end 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 end