X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fmv%2Fmv_dummy_runner.rb;h=f73066967d3f42d41e6c3921b48a0b960ce1de8c;hp=9ed655a4719ad30785b9a917624bc3dadfd7c768;hb=ef77e919fa61bb5ba7924d49a171dc3a05410a33;hpb=df4e02ebf6a4e28a58abcb298a4442a245ad0b15 diff --git a/lib/mv/mv_dummy_runner.rb b/lib/mv/mv_dummy_runner.rb index 9ed655a..f730669 100644 --- a/lib/mv/mv_dummy_runner.rb +++ b/lib/mv/mv_dummy_runner.rb @@ -34,24 +34,10 @@ class MvDummyRunner src_description = plugin.describe(src) dst_description = plugin.describe(dst) - msg = "Would move user #{src} " - - # Only append the extra description if it's useful. - if not src_description.nil? and - not src_description.empty? and - not src_description == src.to_s() then - msg += "(#{src_description}) " - end - - msg += "to #{dst}" - - # Only append the extra description if it's useful. - if not dst_description.nil? and - not dst_description.empty? and - not dst_description == dst.to_s() then - msg += " (#{dst_description})" - end - + msg = "Would move user " + msg += add_description(src, src_description) + msg += " to " + add_description(dst, dst_description) msg += "." report(plugin, msg) end