Skip to content

Instantly share code, notes, and snippets.

@wtnabe
Created August 17, 2009 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtnabe/168871 to your computer and use it in GitHub Desktop.
Save wtnabe/168871 to your computer and use it in GitHub Desktop.
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