diff options
author | John Keiser <jkeiser@opscode.com> | 2014-05-26 21:58:40 -0700 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2014-09-09 21:03:00 -0700 |
commit | 9fa62a5c01b5cf3d5f29818b3c808b5c02ddbdeb (patch) | |
tree | 66ddc980618e30056ca6d9c9adceeac963f7a842 /lib/mixlib/config.rb | |
parent | da2f0ae30bf6d19f236ad7b0742a2b75e586fb8b (diff) | |
download | mixlib-config-jk/strict-error.tar.gz |
Fix strict mode errors to actually print symboljk/strict-error
Diffstat (limited to 'lib/mixlib/config.rb')
-rw-r--r-- | lib/mixlib/config.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mixlib/config.rb b/lib/mixlib/config.rb index 442c40f..b70c11d 100644 --- a/lib/mixlib/config.rb +++ b/lib/mixlib/config.rb @@ -50,7 +50,7 @@ module Mixlib # Pass Mixlib::Config.configure() a block, and it will yield itself # # === Parameters - # block<Block>:: A block that is called with self.configuration as the arugment. + # block<Block>:: A block that is called with self.configuration as the argument. def configure(&block) block.call(self.configuration) end @@ -403,7 +403,7 @@ module Mixlib # === Parameters # symbol<Symbol>:: Name of the method (variable setter) # value<Object>:: Value to be set in config hash - # + # def internal_set(symbol,value) if configurables.has_key?(symbol) configurables[symbol].set(self.configuration, value) @@ -411,9 +411,9 @@ module Mixlib config_contexts[symbol].restore(value) else if config_strict_mode == :warn - Chef::Log.warn("Setting unsupported config value #{method_name}..") + Chef::Log.warn("Setting unsupported config value #{symbol}.") elsif config_strict_mode - raise UnknownConfigOptionError, "Cannot set unsupported config value #{method_name}." + raise UnknownConfigOptionError, "Cannot set unsupported config value #{symbol}." end configuration[symbol] = value end |