Method: Guard::Notifier.notify
- Defined in:
- lib/guard/notifier.rb
.notify(message, options = {}) ⇒ Object
Shows a notification.
33 34 35 36 37 38 39 40 |
# File 'lib/guard/notifier.rb', line 33 def self.notify(, = {}) connect(notify: true) unless @notifier @notifier.notify(, ) rescue RuntimeError => e UI.error "Notification failed for #{@notifier.class.name}: #{e.}" UI.debug e.backtrace.join("\n") end |