actually execute puppet, derp

This commit is contained in:
John Bintz 2011-06-30 23:53:15 -04:00
parent 128a393a61
commit f58a41da14
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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