diff options
author | Thom May <thom@chef.io> | 2016-08-11 12:03:14 +0100 |
---|---|---|
committer | Thom May <thom@may.lt> | 2016-08-11 12:03:42 +0100 |
commit | 38598f2a8c8f4a10bdb646c8ac06a7f48f5f4ca0 (patch) | |
tree | 10a6fabc257bc4c787ccbeb2fd1e2c808b9e847f /lib/mixlib/config.rb | |
parent | a56dd9b0d45cc78edcf813835e43b8433851ac42 (diff) | |
download | mixlib-config-lcg/chefstyle.tar.gz |
Correct new checkslcg/chefstyle
Signed-off-by: Thom May <thom@may.lt>
Diffstat (limited to 'lib/mixlib/config.rb')
-rw-r--r-- | lib/mixlib/config.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mixlib/config.rb b/lib/mixlib/config.rb index d58ed9f..b941920 100644 --- a/lib/mixlib/config.rb +++ b/lib/mixlib/config.rb @@ -57,7 +57,7 @@ module Mixlib # === Parameters # block<Block>:: A block that is called with self.configuration as the argument. def configure(&block) - block.call(self.configuration) + yield(self.configuration) end # Get the value of a config option @@ -285,7 +285,7 @@ module Mixlib define_attr_accessor_methods(symbol) end if block - block.call(configurables[symbol]) + yield(configurables[symbol]) end configurables[symbol] end |