Sha256: 398745538402de0ceb9fdc847cee1d5c19cd1d795f94f5dd7522aba518bc4aca

Contents?: true

Size: 372 Bytes

Versions: 7

Compression:

Stored size: 372 Bytes

Contents

require 'firetower/plugins/core/notifier_common'

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

      private
      def notify(*args)
        system('notify-send', '--icon', CAMPFIRE_LOGO,
                 '-c', 'Firetower', *args) or raise "Desktop 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/notify_plugin.rb
firetower-0.1.0 lib/firetower/plugins/core/notify_plugin.rb
firetower-0.0.9 lib/firetower/plugins/core/notify_plugin.rb
firetower-0.0.8 lib/firetower/plugins/core/notify_plugin.rb
firetower-0.0.7 lib/firetower/plugins/core/notify_plugin.rb
firetower-0.0.6 lib/firetower/plugins/core/notify_plugin.rb
firetower-0.0.5 lib/firetower/plugins/core/notify_plugin.rb