riemann-babbler 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/riemann-babbler CHANGED
@@ -9,9 +9,7 @@ require 'resolv'
9
9
  require 'sequel'
10
10
 
11
11
  require File.expand_path('../../lib/riemann/version', __FILE__)
12
- require File.expand_path('../../lib/deep_merge', __FILE__)
13
12
  require File.expand_path('../../lib/start_helpers', __FILE__)
14
- require File.expand_path('../../lib/riemann/babbler/plugin', __FILE__)
15
13
 
16
14
  opts = Trollop::options do
17
15
  version "Riemann babbler #{Riemann::Babbler::VERSION}"
@@ -29,6 +27,7 @@ end
29
27
  # logger
30
28
  logger = Logger.new(STDOUT)
31
29
 
30
+ # start_helpers
32
31
  merge_config(logger, opts, configatron)
33
32
  set_logger_lvl(logger, configatron)
34
33
  load_plugins(configatron)
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  class Babbler
3
- VERSION = '0.6.3'
3
+ VERSION = '0.6.4'
4
4
  end
5
5
  end
data/lib/start_helpers.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require File.expand_path('../deep_merge', __FILE__)
2
+ require File.expand_path('../riemann/babbler/plugin', __FILE__)
3
+
1
4
  def set_logger_lvl(logger, configatron)
2
5
  case configatron.logger.level
3
6
  when "INFO"
@@ -67,7 +70,9 @@ end
67
70
 
68
71
  # логика стартования плагинов
69
72
  def start_plugins(registered_plugins, riemann, logger, configatron)
73
+
70
74
  plugins_for_run = registered_plugins
75
+
71
76
  if run_only = configatron.plugins.run_only
72
77
  plugins_for_run.delete_if {|plugin| ! run_only.include? plugin.to_s.split("::").last.downcase }
73
78
  end unless ( configatron.plugins.run_only.nil? || configatron.plugins.run_only.empty? )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-babbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  segments:
167
167
  - 0
168
- hash: 204431131547743034
168
+ hash: -2357446997900006882
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  none: false
171
171
  requirements: