Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
growl notifier for God
require 'ruby-growl'
module God
module Contacts
class GodGrowl < Contact
def notify( message, time, priority, category, host )
priority = 0 if ( !priority )
if ( !@growl )
@growl = Growl.new( 'localhost', 'God', ['test'] )
end
@growl.notify( 'test', 'God crashy test', message, priority, false )
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment