X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fmailshears.rb;h=55a87f8324918f317b8c4b893ef752165f77bad8;hp=f4e75f7e3069a6c21a28b5bc20ca3f836a94f98b;hb=f77d8736406afb1fcf017dbc6b2ce780f5cde5be;hpb=a4db2e7eaaf9d17f9250d601bf82b58bdb2681d2 diff --git a/lib/mailshears.rb b/lib/mailshears.rb index f4e75f7..55a87f8 100644 --- a/lib/mailshears.rb +++ b/lib/mailshears.rb @@ -1,13 +1,7 @@ -# Load the rest of the code we'll use. +# Load only the files needed by our executable. The library files are +# supposed to require what they need themselves. -# And the necessary classes. -require 'mailshears/configuration' -require 'mailshears/errors' -require 'mailshears/exit_codes' -require 'mailshears/postfixadmin_db' - -cfg = Configuration.new() - -Configuration.plugins.each do |plugin_file| - require "mailshears/plugins/#{plugin_file}" -end +require 'common/configuration' +require 'common/errors' +require 'common/exit_codes' +require 'common/user_interface'