]> 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 c86d31460e93d96395d4cc29e0849f9a15803ae0..111e360809e25242f81f00bda3bb91be0652ece0 100644 (file)
@@ -5,13 +5,14 @@ class RoundcubeDb
   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