onering-client 0.0.85 → 0.0.86

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ $: << File.expand_path(File.dirname(__FILE__))
2
2
 
3
3
  module Onering
4
4
  module Client
5
- VERSION = "0.0.85"
5
+ VERSION = "0.0.86"
6
6
 
7
7
  class Error < Exception; end
8
8
  class FatalError < Error; end
@@ -56,7 +56,7 @@ module Onering
56
56
  end
57
57
  end
58
58
 
59
- def load_plugins
59
+ def load_plugins()
60
60
  # load plugins from @path
61
61
  @path.compact.each do |root|
62
62
  begin
@@ -71,16 +71,16 @@ module Onering
71
71
  # <fact>-<fact_value> - load if <fact> == <fact_value>
72
72
  #
73
73
  if d == 'default' or Facter.value(d.split('-',2).first).to_s.downcase.nil_empty == d.split('-',2).last.to_s.downcase.nil_empty
74
- Dir[File.join(directory, '*.rb')].each do |e|
75
- e = File.basename(e, '.rb')
74
+ Dir[File.join(directory, '*.rb')].each do |plugin|
75
+ plugin = File.basename(plugin, '.rb')
76
76
 
77
77
  begin
78
78
  Timeout.timeout((@options[:plugin_timeout] || 10).to_i) do
79
- Onering::Logger.debug("Loading plugin #{e}", "Onering::Reporter")
80
- require "#{directory}/#{e}"
79
+ Onering::Logger.debug("Loading plugin #{plugin}", "Onering::Reporter")
80
+ require "#{directory}/#{plugin}"
81
81
  end
82
- rescue Timeout::Error
83
- Onering::Logger.warn("Plugin #{e} took too long to return, skipping", "Onering::Reporter")
82
+ rescue Timeout::Error => e
83
+ Onering::Logger.warn("Plugin #{plugin} took too long to return, skipping", "Onering::Reporter")
84
84
  end
85
85
  end
86
86
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onering-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.85
4
+ version: 0.0.86
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: