Module: Notifier::NotifySend
Instance Method Summary collapse
Instance Method Details
#notify(options) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/notifier/notify_send.rb', line 9 def notify() command = [ "notify-send", "-i", [:image].to_s, [:title].to_s, [:message].to_s ] Thread.new { system(*command) }.join end |