Sha256: d1e787246c6cd34e2f92a45c8d541044a2bdd0698a4c89000890a332221e8c36
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 Bytes
Contents
module TestNotifier module Notifier module NotifySend extend self def supported? RUBY_PLATFORM =~ /(linux|freebsd)/ && `which notify-send &> /dev/null` && $? == 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.4 | lib/test_notifier/notifier/notify_send.rb |