Module: Guard::Notifier
- Defined in:
- lib/guard/notifier.rb
Class Method Summary collapse
-
.notify(message, options = {}) ⇒ Object
Shows a notification.
- .turn_on ⇒ Object
Class Method Details
.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 |
.turn_on ⇒ Object
42 43 44 |
# File 'lib/guard/notifier.rb', line 42 def self.turn_on @notifier.turn_on end |