]> gitweb.michael.orlitzky.com - mailshears.git/blob - lib/rm/rm_dummy_runner.rb
Explicitly require 'common/errors' in RmRunner.
[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: #{target} (#{user_description})")
11 else
12 domain_description = plugin.describe_domain(target)
13 report(plugin, "Would remove domain: #{target} (#{domain_description})")
14 end
15 end
16
17 end
18
19 end