Class: Pendaxes::Notificator::File

Inherits:
Pendaxes::Notificator show all
Defined in:
lib/pendaxes/notificators/file.rb

Instance Method Summary collapse

Methods inherited from Pendaxes::Notificator

#initialize, #report_for, #reporter

Methods included from Defaults

#defaults

Methods included from Finder

#announce, #find, #inherited

Methods included from PendingManager

#add, #all_pendings, #pendings, #reset

Constructor Details

This class inherits a constructor from Pendaxes::Notificator

Instance Method Details

#notifyObject



8
9
10
11
12
13
# File 'lib/pendaxes/notificators/file.rb', line 8

def notify
  @config.out.puts "   * writing report to #{@config.to}" if @config.out
  open(@config.to, 'w') do |io|
    io.puts report_for(pendings)
  end
end