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