Sha256: 561f4737d82c2d3add6a25d086c15d7ed2abb9fba98ccbb15e83cd44704d5a5c

Contents?: true

Size: 427 Bytes

Versions: 7

Compression:

Stored size: 427 Bytes

Contents

require 'firetower/plugins/core/notifier_common'

module Firetower
  module Plugins
    class GrowlPlugin < Firetower::Session::Listener
      include NotifierCommon

      private

      def notify(*args)
        system('growlnotify', '-t', (args[2].nil? ? args[0] : "#{args[0]} - #{args[2]}"), 
          '-m', args[1], '--image', CAMPFIRE_LOGO) \
            or raise "Growl notification failed"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
firetower-0.1.1 lib/firetower/plugins/core/growl_plugin.rb
firetower-0.1.0 lib/firetower/plugins/core/growl_plugin.rb
firetower-0.0.9 lib/firetower/plugins/core/growl_plugin.rb
firetower-0.0.8 lib/firetower/plugins/core/growl_plugin.rb
firetower-0.0.7 lib/firetower/plugins/core/growl_plugin.rb
firetower-0.0.6 lib/firetower/plugins/core/growl_plugin.rb
firetower-0.0.5 lib/firetower/plugins/core/growl_plugin.rb