X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Frm%2Frm_dummy_runner.rb;h=091d32881bb9940f5f72c5ff2f67c3ba0030010e;hp=d6c2c5f85223a80ce93c6d9a2f4b126954c3b20a;hb=4e7ef12d3d47aa7ec68419de46c51269c40eb158;hpb=e3826d8926e11763837a591986d453e9ef5d9dec diff --git a/lib/rm/rm_dummy_runner.rb b/lib/rm/rm_dummy_runner.rb index d6c2c5f..091d328 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_account(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