lib/guard/notifier.rb
# Auto detect the available notification library. This goes through
# the list of supported notification gems and picks the first that
# is available in each notification group.
#
Auto detect the available notification library. This goes through
the list of supported notification gems and picks the first that
is available in each notification group.
Auto detect the available notification library . This goes through the list of supported notification gems and picks the first that is available in each notification group .
def auto_detect_notification
      available = nil
      self.notifications = []
      NOTIFIERS.each do |group|
        added = group.map { |n| n.first }.find { |notifier| add_notification(notifier, { }, true) }
        available = available || added
      end
      ::Guard::UI.info('Guard could not detect any of the supported notification libraries.') unless available
    end
def auto_detect_notification available = nil self . notifications = [ ] NOTIFIERS . each do | group | added = group . map { | n | n . first } . find { | notifier | add_notification ( notifier , { } , true ) } available = available || added end :: Guard :: UI . info ( 'Guard could not detect any of the supported notification libraries.' ) unless available end
Auto detect the available notification library.
Auto detect the available notification library .