X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fcommon%2Fpostfixadmin_plugin.rb;fp=lib%2Fcommon%2Fpostfixadmin_db_plugin.rb;h=4bfda9dcdece7e7216856b17ff96745c031313e7;hp=da40879ed07c03214cab62d2984d5a5da86b7cf6;hb=7f8654ed6582062a295e1be75ae70e99de41b323;hpb=bd2dabf89ab277fbe315b05e6dfa839afb5ce5ef;ds=sidebyside diff --git a/lib/common/postfixadmin_db_plugin.rb b/lib/common/postfixadmin_plugin.rb similarity index 88% rename from lib/common/postfixadmin_db_plugin.rb rename to lib/common/postfixadmin_plugin.rb index da40879..4bfda9d 100644 --- a/lib/common/postfixadmin_db_plugin.rb +++ b/lib/common/postfixadmin_plugin.rb @@ -1,21 +1,21 @@ require 'common/plugin' require 'pg' -module PostfixadminDbPlugin - # Code that all PostfixadminDb plugins (Prune, Rm, Mv...) will +module PostfixadminPlugin + # Code that all Postfixadmin plugins (Prune, Rm, Mv...) will # share. That is, we implement the Plugin interface. include Plugin def initialize() cfg = Configuration.new() - @db_host = cfg.dbhost - @db_port = cfg.dbport - @db_opts = cfg.dbopts - @db_tty = cfg.dbtty - @db_name = cfg.dbname - @db_user = cfg.dbuser - @db_pass = cfg.dbpass + @db_host = cfg.postfixadmin_dbhost + @db_port = cfg.postfixadmin_dbport + @db_opts = cfg.postfixadmin_dbopts + @db_tty = cfg.postfixadmin_dbtty + @db_name = cfg.postfixadmin_dbname + @db_user = cfg.postfixadmin_dbuser + @db_pass = cfg.postfixadmin_dbpass end