]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/common/postfixadmin_plugin.rb
Rename PostfixadminDb, RoundcubeDb without the Db suffix.
[mailshears.git] / lib / common / postfixadmin_plugin.rb
similarity index 88%
rename from lib/common/postfixadmin_db_plugin.rb
rename to lib/common/postfixadmin_plugin.rb
index da40879ed07c03214cab62d2984d5a5da86b7cf6..4bfda9dcdece7e7216856b17ff96745c031313e7 100644 (file)
@@ -1,21 +1,21 @@
 require 'common/plugin'
 require 'pg'
 
 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()
   # 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
 
 
   end