X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Frm%2Frm_dummy_runner.rb;h=2b1f14d66af40e91514aad00fb21a0f6d87596d2;hp=54a8969bcc6925d5c55590b0a537e2367a66846d;hb=579a22471329c71552bcb4077a0590d60cdec784;hpb=df4e02ebf6a4e28a58abcb298a4442a245ad0b15 diff --git a/lib/rm/rm_dummy_runner.rb b/lib/rm/rm_dummy_runner.rb index 54a8969..2b1f14d 100644 --- a/lib/rm/rm_dummy_runner.rb +++ b/lib/rm/rm_dummy_runner.rb @@ -27,14 +27,8 @@ class RmDummyRunner def run(cfg, plugin, *targets) targets.each do |target| target_description = plugin.describe(target) - msg = "Would remove #{target.class.to_s().downcase()} #{target}" - - # Only append the extra description if it's useful. - if not target_description.nil? and - not target_description.empty? and - not target_description == target.to_s() then - msg += " (#{target_description})" - end + msg = "Would remove #{target.class.to_s().downcase()} " + msg += add_description(target, target_description) msg += '.' report(plugin, msg)