Sha256: 5ba91d081970720fc8da868e3a3569a64bad5afa7b1b050c0379f846299a6c79

Contents?: true

Size: 383 Bytes

Versions: 7

Compression:

Stored size: 383 Bytes

Contents

module TestNotifier
  module Notifier
    module Knotify
      extend self

      def supported?
        RUBY_PLATFORM =~ /(linux|freebsd)/ && `ps -Al | grep dcop` && $? == 0
      end

      def notify(options)
        Thread.new do
          `dcop knotify default notify eventname \'#{options[:title]}\' \'#{options[:message]}\' '' '' 16 2`
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
test_notifier-0.3.4 lib/test_notifier/notifier/knotify.rb
test_notifier-0.3.3 lib/test_notifier/notifier/knotify.rb
test_notifier-0.3.2 lib/test_notifier/notifier/knotify.rb
test_notifier-0.3.1 lib/test_notifier/notifier/knotify.rb
test_notifier-0.3.0 lib/test_notifier/notifier/knotify.rb
test_notifier-0.2.1 lib/test_notifier/notifier/knotify.rb
test_notifier-0.2.0 lib/test_notifier/notifier/knotify.rb