lib/kicker/growl.rb in kicker-2.6.0 vs lib/kicker/growl.rb in kicker-2.6.1
- old
+ new
@@ -47,29 +47,24 @@
def start!
::Growl::Notifier.sharedInstance.register('Kicker', NOTIFICATIONS.values)
end
def change_occured(status)
- growl(notifications[:change], 'Kicker: Executing', status.call(:growl) || status.command)
+ growl(notifications[:change], 'Kicker: Executing', status.command)
end
- def command_callback
- lambda { system(command) } if command
- end
-
def result(status)
status.success? ? succeeded(status) : failed(status)
end
def succeeded(status)
- callback = command_callback || DEFAULT_CALLBACK
- body = status.call(:growl) || (Kicker.silent? ? '' : status.output)
- growl(notifications[:succeeded], "Kicker: Success", body, &callback)
+ body = Kicker.silent? ? '' : status.output
+ growl(notifications[:succeeded], "Kicker: Success", body, &DEFAULT_CALLBACK)
end
def failed(status)
message = "Kicker: Failed (#{status.exit_code})"
- body = status.call(:growl) || (Kicker.silent? ? '' : status.output)
+ body = Kicker.silent? ? '' : status.output
growl(notifications[:failed], message, body, &DEFAULT_CALLBACK)
end
end
end
end