Restructure the lib directory to avoid name collisions.
[mailshears.git] / bin / mailshears
index 5a8ee0a6752064292274d585e16dc38c4bb39d51..96a3c303777269d9a1a32c8110f6821478fbae15 100755 (executable)
 # filesystem, but not the database.
 #
 
-# Needed for rm_rf.
-require 'fileutils'
+require 'mailshears'
 
 # Load our config file.
 require 'configuration'
 
-# And the necessary classes.
-require 'errors.rb'
-require 'exit_codes.rb'
-require 'postfixadmin_db'
-
-Configuration::PLUGINS.each do |plugin_file|
-  require "plugins/#{plugin_file}"
-end
-
 pgadb = PostfixadminDb.new(Configuration::DBHOST,
                            Configuration::DBPORT,
                            Configuration::DBOPTS,