better message
This commit is contained in:
parent
f58a41da14
commit
217bb55774
@ -15,10 +15,11 @@ module ::Guard
|
|||||||
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(msg = "Puppet config failure!", :title => "Puppet Config", :image => :failed)
|
||||||
else
|
else
|
||||||
Notifier.notify "Puppet config reapplied successfully!", :title => "Puppet Config"
|
Notifier.notify(msg = "Puppet config reapplied successfully!", :title => "Puppet Config")
|
||||||
end
|
end
|
||||||
|
UI.info(msg)
|
||||||
end
|
end
|
||||||
|
|
||||||
def run_on_change(files = [])
|
def run_on_change(files = [])
|
||||||
|
@ -6,7 +6,7 @@ describe Guard::Puppet do
|
|||||||
|
|
||||||
describe '#run_all' do
|
describe '#run_all' do
|
||||||
before do
|
before do
|
||||||
Guard::UI.expects(:info)
|
Guard::UI.stubs(:info)
|
||||||
Guard::Notifier.expects(:notify).with("Applying Puppet configuration...", { :image => :pending, :title => "Puppet Config" })
|
Guard::Notifier.expects(:notify).with("Applying Puppet configuration...", { :image => :pending, :title => "Puppet Config" })
|
||||||
Guard::Puppet::Runner.any_instance.expects(:run).returns(return_value)
|
Guard::Puppet::Runner.any_instance.expects(:run).returns(return_value)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user