Sha256: e24eeeb69beed9922d290a4b80b7b4a2c55b5b6657475f66bddae15d28e13e58

Contents?: true

Size: 358 Bytes

Versions: 6

Compression:

Stored size: 358 Bytes

Contents

module TestNotifier
  module Notifier
    module Kdialog
      extend self

      def supported?
        RUBY_PLATFORM =~ /(linux|freebsd)/ && `which kdialog` && $? == 0
      end

      def notify(options)
        Thread.new do
          `kdialog --title #{options[:title]} --passivepopup \"#{options[:message]}\" 5`
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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