60cf23ab8b32c12eefd06fce87a659c697689f0d
[mailshears.git] / lib / rm / rm_dummy_runner.rb
1 require 'common/runner'
2
3 class RmDummyRunner
4 include Runner
5
6 def run(plugin, *targets)
7 targets.each do |target|
8 if target.include?('@') then
9 user_description = plugin.describe_user(target)
10 report(plugin, "Would remove user: #{user} (#{user_description})")
11 else
12 domain_description = plugin.describe_domain(target)
13 report(plugin, "Would remove domain: #{domain} (#{domain_description})")
14 end
15 end
16
17 end
18
19 end