X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Frm%2Frm_dummy_runner.rb;h=60cf23ab8b32c12eefd06fce87a659c697689f0d;hp=d6c2c5f85223a80ce93c6d9a2f4b126954c3b20a;hb=72696d3f6e95ef773af9727e9c3459b9038b0fc2;hpb=e3826d8926e11763837a591986d453e9ef5d9dec diff --git a/lib/rm/rm_dummy_runner.rb b/lib/rm/rm_dummy_runner.rb index d6c2c5f..60cf23a 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) 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