Module: Notifiers

Defined in:
lib/notifiers.rb,
lib/notifiers/base.rb,
lib/notifiers/growl.rb,
lib/notifiers/knotify.rb,
lib/notifiers/notify_send.rb,
lib/notifiers/notifier_not_found.rb

Defined Under Namespace

Classes: Base, Growl, Knotify, NotifierNotFound, NotifySend

Instance Method Summary collapse

Instance Method Details

#auto_discoverObject



19
20
21
22
23
# File 'lib/notifiers.rb', line 19

def auto_discover
  notifier = Notifiers::Base.subclasses.find { |notifier| notifier.installed? } or raise NotifierNotFound

  notifier.new
end

#growlObject



6
7
8
# File 'lib/notifiers.rb', line 6

def growl
  Growl.new
end

#knotifyObject



10
11
12
# File 'lib/notifiers.rb', line 10

def knotify
  Knotify.new
end

#notify_sendObject Also known as: lib_notify



14
15
16
# File 'lib/notifiers.rb', line 14

def notify_send
  NotifySend.new
end