wtnabe (owner)

Revisions

gist: 168871 Download_button fork
public
Public Clone URL: git://gist.github.com/168871.git
Embed All Files: show embed
god_growl.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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