]>
gitweb.michael.orlitzky.com - mailshears.git/blob - rm_dummy_runner.rb
2ab25e80a3e402f5ba3c21214b30a768d6c2cd2c
1 require 'common/runner'
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}"
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})"