summaryrefslogtreecommitdiff
path: root/lib/ohai/config.rb
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2015-08-24 11:59:22 -0700
committerClaire McQuin <claire@getchef.com>2015-08-24 11:59:22 -0700
commit3fe8850e66d5a95e47f2f14471eb22648b43bbef (patch)
tree31213b2fa891abece0a8a861b73bbda8bb37f1b8 /lib/ohai/config.rb
parentc3e3f44949dae96ab5c73de13dfbab1bb3d0457c (diff)
downloadohai-3fe8850e66d5a95e47f2f14471eb22648b43bbef.tar.gz
Support ohai.plugin configuration
Diffstat (limited to 'lib/ohai/config.rb')
-rw-r--r--lib/ohai/config.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ohai/config.rb b/lib/ohai/config.rb
index fa0cc8e9..8dea7f98 100644
--- a/lib/ohai/config.rb
+++ b/lib/ohai/config.rb
@@ -18,7 +18,9 @@
#
require 'chef-config/config'
+require 'ohai/exception'
require 'ohai/log'
+require 'ohai/plugin_config'
module Ohai
Config = ChefConfig::Config
@@ -93,6 +95,7 @@ module Ohai
default :hints_path, Ohai::Config.default_hints_path
default :log_level, :auto
default :log_location, STDERR
+ default :plugin, Ohai::PluginConfig.new { |h, k| h[k] = Ohai::PluginConfig.new }
default :plugin_path, Ohai::Config.default_plugin_path
end