X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=bin%2Fmailshears;h=f7d5afa5b10c75264e92f275f4bfeb24724bb74e;hp=215bd6ba1f7bf046a71f0df9bbfaa7b34f384101;hb=c2737d4d972df30725e417bed0940fc8df8e88bd;hpb=e7c89a22bd64fe2f1023b87728315b97cac715b8;ds=sidebyside diff --git a/bin/mailshears b/bin/mailshears index 215bd6b..f7d5afa 100755 --- a/bin/mailshears +++ b/bin/mailshears @@ -101,20 +101,7 @@ require 'stringio' output_buffer = StringIO.new() $stdout = output_buffer -plugin_module.includers.each do |plugin_module_includer| - plugin = plugin_module_includer.new(cfg) - - if cfg.i_mean_business then - runner = plugin.runner().new() - else - runner = plugin.dummy_runner().new() - end - - # The splat passes the correct (we hope) number of arguments to the - # appropriate runner. The Rm(Dummy)Runner have splats on their - # *target arguments as well, to turn ARGV back into an array. - runner.run(plugin, *ARGV) -end +plugin_module.run(cfg, *ARGV) # Restore stdout, and print the header plus whatever the plugins # produced if they produced anything. If they didn't, we avoid