Sha256: a9f0196208a0a7fec84355aab3f85b545af94f9f4d9a050dfb4183d1cfc7eae8
Contents?: true
Size: 328 Bytes
Versions: 1
Compression:
Stored size: 328 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
notifier-0.1.3 | lib/notifier/notify_send.rb |