Sha256: 0f075c7e77ab8c6979bfc711867301d15cce80dac9b6b3664a693f9f11f7b68f
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
module TestNotifier module Notifier module NotifySend extend self def supported? RUBY_PLATFORM =~ /(linux|freebsd)/ && `which notify-send &> /dev/null` && $?.exitstatus == 0 end def notify(options) Thread.new do `notify-send -i #{options[:image]} #{options[:title]} \"#{options[:message]}\"` end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
test_notifier-0.3.5.rc.1 | lib/test_notifier/notifier/notify_send.rb |