Class: ArMailerRevised::Mailman

Inherits:
Object
  • Object
show all
Includes:
Helpers::CommandLine, Helpers::General
Defined in:
lib/ar_mailer_revised/mailman.rb

Instance Method Summary collapse

Methods included from Helpers::General

#log_file, #log_level, #logger, #rails_environment, #rails_environment?

Constructor Details

#initialize(options = {}) ⇒ Mailman

Simply holds a copy of the options given in from command line



22
23
24
# File 'lib/ar_mailer_revised/mailman.rb', line 22

def initialize(options = {})
  @options = options
end

Instance Method Details

#runObject



26
27
28
29
# File 'lib/ar_mailer_revised/mailman.rb', line 26

def run
 logger.debug "ArMailerRevised initialized with the following options:\n" + Hirb::Helpers::AutoTable.render(@options)
 deliver_emails
end