]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/mailshears/plugins/roundcube_db.rb
Update the rest of the code to use the new Configuration class.
[mailshears.git] / lib / mailshears / plugins / roundcube_db.rb
index cb2e055f44f9b720ca436a510e6f7c0fb85bfadf..111e360809e25242f81f00bda3bb91be0652ece0 100644 (file)
@@ -5,13 +5,14 @@ class RoundcubeDb
   include Plugin
 
   def initialize()
   include Plugin
 
   def initialize()
-    @db_host = Configuration::ROUNDCUBE_DBHOST
-    @db_port = Configuration::ROUNDCUBE_DBPORT
-    @db_opts = Configuration::ROUNDCUBE_DBOPTS
-    @db_tty  = Configuration::ROUNDCUBE_DBTTY
-    @db_name = Configuration::ROUNDCUBE_DBNAME
-    @db_user = Configuration::ROUNDCUBE_DBUSER
-    @db_pass = Configuration::ROUNDCUBE_DBPASS
+    cfg = Configuration.new()
+    @db_host = cfg.roundcube_dbhost
+    @db_port = cfg.roundcube_dbport
+    @db_opts = cfg.roundcube_dbopts
+    @db_tty  = cfg.roundcube_dbtty
+    @db_name = cfg.roundcube_dbname
+    @db_user = cfg.roundcube_dbuser
+    @db_pass = cfg.roundcube_dbpass
   end
 
 
   end