Replace 'account' with 'user' everywhere.
[mailshears.git] / lib / rm / rm_dummy_runner.rb
index c79e0467984198e903eef70ae296fae91dc17c60..60cf23ab8b32c12eefd06fce87a659c697689f0d 100644 (file)
@@ -1,16 +1,19 @@
+require 'common/runner'
+
 class RmDummyRunner
   include Runner
 
-  def run(plugin, targets)
+  def run(plugin, *targets)
     targets.each do |target|
       if target.include?('@') then
-        puts "Would remove account: #{target}"
+        user_description = plugin.describe_user(target)
+        report(plugin, "Would remove user: #{user} (#{user_description})")
       else
-        puts "Would remove domain: #{target}"
+        domain_description = plugin.describe_domain(target)
+        report(plugin, "Would remove domain: #{domain} (#{domain_description})")
       end
     end
 
-    # TODO: remove from postfixadmin as well.
   end
 
 end