]> gitweb.michael.orlitzky.com - mailshears.git/blob - lib/mailshears.rb
e159b09b3b6ca6c93dce474a1d0106b1ae261b42
[mailshears.git] / lib / mailshears.rb
1 # Load the rest of the code we'll use.
2
3 # And the necessary classes.
4 require 'mailshears/errors.rb'
5 require 'mailshears/exit_codes.rb'
6 require 'mailshears/postfixadmin_db'
7
8 # Load the default config file first, and let the user override it.
9 require 'default_configuration'
10
11 userconf_path = ENV['HOME'] + '/.mailshears.conf.rb'
12 begin
13 # Don't crash if it doesn't exist. Maybe he likes the defaults?
14 require userconf_path
15 rescue LoadError
16 end
17
18 Configuration::plugins.each do |plugin_file|
19 require "mailshears/plugins/#{plugin_file}"
20 end
21