Replace 'account' with 'user' everywhere.
[mailshears.git] / lib / prune / prune_dummy_runner.rb
index 4274bef8f08db79990e9e98cc42e15d2c129619e..6cb789fcee6c4243f7e4a819eaf55fc8f8102e76 100644 (file)
@@ -10,16 +10,17 @@ class PruneDummyRunner
     # We don't want to check the PostfixAdmin database against itself.
     return if plugin.class == PostfixadminPrune
 
-    pfa = PostfixadminPrune.new()
+    cfg = Configuration.new()
+    pfa = PostfixadminPrune.new(cfg)
 
     db_users = pfa.list_users()
     db_domains = pfa.list_domains()
 
-    leftover_users = plugin.get_leftover_accounts(db_users)
+    leftover_users = plugin.get_leftover_users(db_users)
     leftover_domains = plugin.get_leftover_domains(db_domains)
 
     leftover_users.each do |user|
-      user_description = plugin.describe_account(user)
+      user_description = plugin.describe_user(user)
       report(plugin, "Would remove user: #{user} (#{user_description})")
     end