Sha256: 3fdab28641b65863913e1ce680262eaa714a16066da8b66b4a21146c8c72f27e

Contents?: true

Size: 394 Bytes

Versions: 2

Compression:

Stored size: 394 Bytes

Contents

module TestNotifier
  module Notifier
    module Knotify
      extend self

      def supported?
        RUBY_PLATFORM =~ /(linux|freebsd)/ && `ps -Al | grep dcop` && $?.exitstatus == 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

2 entries across 2 versions & 1 rubygems

Version Path
test_notifier-0.3.5.rc.2 lib/test_notifier/notifier/knotify.rb
test_notifier-0.3.5.rc.1 lib/test_notifier/notifier/knotify.rb