+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: #{target} (#{user_description})")
else
- puts "Would remove domain: #{target}"
+ domain_description = plugin.describe_domain(target)
+ report(plugin, "Would remove domain: #{target} (#{domain_description})")
end
end
- # TODO: remove from postfixadmin as well.
end
end