From f58a41da1469387e0d705c78122c92865b0f0762 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 30 Jun 2011 23:53:15 -0400 Subject: [PATCH] actually execute puppet, derp --- lib/guard/puppet.rb | 2 +- lib/guard/puppet/runner.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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