diff --git a/lib/guard/puppet.rb b/lib/guard/puppet.rb index 9238afa..da6307e 100644 --- a/lib/guard/puppet.rb +++ b/lib/guard/puppet.rb @@ -12,7 +12,7 @@ module ::Guard end def run_all - UI.info msg = "Applying Puppet configuration..." + UI.info(msg = "Applying Puppet configuration...") Notifier.notify msg, :title => "Puppet Config", :image => :pending if Runner.new(@options).run != 0 Notifier.notify "Puppet config failure!", :title => "Puppet Config", :image => :failed diff --git a/lib/guard/puppet/runner.rb b/lib/guard/puppet/runner.rb index 1c7bf98..896a798 100644 --- a/lib/guard/puppet/runner.rb +++ b/lib/guard/puppet/runner.rb @@ -15,7 +15,8 @@ module Guard end def run - ::Puppet::Util::CommandLine.new('puppet', command_line_params) + ::Puppet::Util::CommandLine.new('puppet', command_line_params).execute + 0 rescue SystemExit => e e.status end