Class: Pendaxes::Notificator::Mail
- Inherits:
-
Pendaxes::Notificator
- Object
- Pendaxes::Notificator
- Pendaxes::Notificator::Mail
- Defined in:
- lib/pendaxes/notificators/mail.rb
Instance Method Summary collapse
Methods inherited from Pendaxes::Notificator
#initialize, #report_for, #reporter
Methods included from Defaults
Methods included from Finder
Methods included from PendingManager
#add, #all_pendings, #pendings, #reset
Constructor Details
This class inherits a constructor from Pendaxes::Notificator
Instance Method Details
#blacklist ⇒ Object
27 28 29 |
# File 'lib/pendaxes/notificators/mail.rb', line 27 def blacklist @blacklist ||= process_email_filter(@config.blacklist) end |
#notify ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/pendaxes/notificators/mail.rb', line 9 def notify if @config.to deliver(pendings, @config.to) else pendings.group_by {|pending| pending[:commit][:email] }.each do |email, pends| deliver(pends, email) end end end |
#whitelist ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/pendaxes/notificators/mail.rb', line 19 def whitelist if @config.whitelist @whitelist ||= process_email_filter(@config.whitelist) else nil end end |