actually execute puppet, derp
This commit is contained in:
parent
128a393a61
commit
f58a41da14
@ -12,7 +12,7 @@ module ::Guard
|
|||||||
end
|
end
|
||||||
|
|
||||||
def run_all
|
def run_all
|
||||||
UI.info msg = "Applying Puppet configuration..."
|
UI.info(msg = "Applying Puppet configuration...")
|
||||||
Notifier.notify msg, :title => "Puppet Config", :image => :pending
|
Notifier.notify msg, :title => "Puppet Config", :image => :pending
|
||||||
if Runner.new(@options).run != 0
|
if Runner.new(@options).run != 0
|
||||||
Notifier.notify "Puppet config failure!", :title => "Puppet Config", :image => :failed
|
Notifier.notify "Puppet config failure!", :title => "Puppet Config", :image => :failed
|
||||||
|
@ -15,7 +15,8 @@ module Guard
|
|||||||
end
|
end
|
||||||
|
|
||||||
def run
|
def run
|
||||||
::Puppet::Util::CommandLine.new('puppet', command_line_params)
|
::Puppet::Util::CommandLine.new('puppet', command_line_params).execute
|
||||||
|
0
|
||||||
rescue SystemExit => e
|
rescue SystemExit => e
|
||||||
e.status
|
e.status
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user