X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Frm%2Frm_dummy_runner.rb;h=477608f8e77318e535ef671eca0bb7a629a5d0ad;hp=c79e0467984198e903eef70ae296fae91dc17c60;hb=41b5e74bedf1def1ef22cd77ed26d87fae859a13;hpb=a6ae98f0423603445b621a8eaa17443c8d590b45 diff --git a/lib/rm/rm_dummy_runner.rb b/lib/rm/rm_dummy_runner.rb index c79e046..477608f 100644 --- a/lib/rm/rm_dummy_runner.rb +++ b/lib/rm/rm_dummy_runner.rb @@ -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: #{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