#!/usr/bin/env ruby # coding: utf-8 require 'trollop' require 'configatron' $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'riemann/babbler/version' require 'riemann/babbler/start' opts = Trollop::options do version "Riemann babbler #{Riemann::Babbler::VERSION}" banner <<-EOS Riemann-babbler is plugin manager for riemann-tools. Usage: riemann-babbler [options] where [options] are: EOS opt :config, 'Config file', :default => '/etc/riemann-babbler/config.yml' end babbler = Riemann::Babbler::Starter.new(opts, configatron) babbler.start!