Sha256: d6c02e72f37075231debd0d2659f9278bd68fd903c19518264b04b59825d277a
Contents?: true
Size: 489 Bytes
Versions: 4
Compression:
Stored size: 489 Bytes
Contents
module MailRoom class Configuration attr_accessor :mailboxes, :daemonize, :log_path, :pid_path def initialize(options={}) self.mailboxes = [] if options.has_key?(:config_path) config_file = YAML.load_file(options[:config_path]) set_mailboxes(config_file[:mailboxes]) end end def set_mailboxes(mailboxes_config) mailboxes_config.each do |attributes| self.mailboxes << Mailbox.new(attributes) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems