File: terminal-notifier.rb

package info (click to toggle)
ruby-notify 0.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 144 kB
  • ctags: 20
  • sloc: ruby: 112; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 215 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
module Notify
  begin
    require 'terminal-notifier'

    def self.notify(title, message, options = {})
      TerminalNotifier.notify(message, {:title => title}.merge(options))
    end
  rescue LoadError
  end
end