module Mcmailer
Constants
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/mcmailer.rb, line 10 def self.config @config end
configure(opts={})
click to toggle source
# File lib/mcmailer.rb, line 14 def self.configure(opts={}) opts.each {|k,v| @config[k] = v if @valid_config_keys.include? k} end
configure_with(yaml_file_path)
click to toggle source
# File lib/mcmailer.rb, line 18 def self.configure_with(yaml_file_path) begin config = YAML.load_file(yaml_file_path) rescue Errno::ENOENT log(:error, "YAML configuration file couldn't be found!") rescue Psych::SyntaxError log(:error, "YAML configuration file contains invalid syntax!") end configure(config) end