2ab25e80a3e402f5ba3c21214b30a768d6c2cd2c
[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 target_description = plugin.describe(target)
9 msg = "Would remove #{target.class.to_s().downcase()} #{target}"
10
11 # Only append the extra description if it's useful.
12 if not target_description.nil? and
13 not target_description.empty? and
14 not target_description == target.to_s() then
15 msg += " (#{target_description})"
16 end
17 msg += '.'
18
19 report(plugin, msg)
20 end
21
22 end
23
24 end