File: growlnotify.rb

package info (click to toggle)
ruby-notify 0.5.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 144 kB
  • sloc: ruby: 112; makefile: 2
file content (7 lines) | stat: -rw-r--r-- 162 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
module Notify
  if which('growlnotify')
    def self.notify(title, message, option = {})
      system 'growlnotify', '-t', title, '-m', message
    end
  end
end