Sha256: 8fc97ef285f6f96fd5fd4a12a0a682f7c35149f4d931fa656da4106bbf3aad37
Contents?: true
Size: 328 Bytes
Versions: 3
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
notifier-0.1.2 | lib/notifier/notify_send.rb |
notifier-0.1.1 | lib/notifier/notify_send.rb |
notifier-0.1.0 | lib/notifier/notify_send.rb |