summaryrefslogtreecommitdiff
path: root/lib/mixlib/config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mixlib/config.rb')
-rw-r--r--lib/mixlib/config.rb8
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