bin/riemann-babbler in riemann-babbler-2.0.0pre11 vs bin/riemann-babbler in riemann-babbler-2.0.0pre13
- old
+ new
@@ -2,11 +2,10 @@
# coding: utf-8
require 'trollop'
require 'yaml'
require_relative '../lib/riemann/babbler'
-require_relative '../lib/riemann/babbler/plugin'
include Riemann::Babbler::Logging
include Riemann::Babbler::Options
cmd_opts = Trollop::options do
@@ -40,7 +39,8 @@
opts.configure_from_hash({ :riemann => cmd_opts })
@@logger.level = Logger.const_get(opts.riemann.log_level) #todo: to hard
merge_config(opts.riemann.config)
# start
-Riemann::Babbler::Responder.new.run!
-Riemann::Babbler::PluginLoader.new(Riemann::Babbler::Sender.new).run!
+sender = Riemann::Babbler::Sender.new
+plugins_to_start = Riemann::Babbler::PluginLoader.new.plugin_to_start
+Riemann::Babbler::PluginManager.new(sender, plugins_to_start).run!