diff options
author | John Keiser <john@johnkeiser.com> | 2015-09-01 13:21:02 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-09-01 19:30:51 -0700 |
commit | f975355dc9cb9ef73ff86471a32bfac459efeb7a (patch) | |
tree | 32b4254108a03359934d1da1a4e7e7822086ab87 /lib/chef/mixin/deprecation.rb | |
parent | 386468df5441f4a75865bccfd9314f883e5f39ff (diff) | |
download | chef-f975355dc9cb9ef73ff86471a32bfac459efeb7a.tar.gz |
Rename log.deprecation to log_deprecation
Diffstat (limited to 'lib/chef/mixin/deprecation.rb')
-rw-r--r-- | lib/chef/mixin/deprecation.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/chef/mixin/deprecation.rb b/lib/chef/mixin/deprecation.rb index c90daee4f5..562af541bd 100644 --- a/lib/chef/mixin/deprecation.rb +++ b/lib/chef/mixin/deprecation.rb @@ -102,20 +102,20 @@ class Chef def deprecated_attr_reader(name, alternative, level=:warn) define_method(name) do - Chef.log.deprecation("#{self.class}.#{name} is deprecated. Support will be removed in a future release.") - Chef.log.deprecation(alternative) - Chef.log.deprecation("Called from:") - caller[0..3].each {|c| Chef.log.deprecation(c)} + Chef.log_deprecation("#{self.class}.#{name} is deprecated. Support will be removed in a future release.") + Chef.log_deprecation(alternative) + Chef.log_deprecation("Called from:") + caller[0..3].each {|c| Chef.log_deprecation(c)} instance_variable_get("@#{name}") end end def deprecated_attr_writer(name, alternative, level=:warn) define_method("#{name}=") do |value| - Chef.log.deprecation("Writing to #{self.class}.#{name} with #{name}= is deprecated. Support will be removed in a future release.") - Chef.log.deprecation(alternative) - Chef.log.deprecation("Called from:") - caller[0..3].each {|c| Chef.log.deprecation(c)} + Chef.log_deprecation("Writing to #{self.class}.#{name} with #{name}= is deprecated. Support will be removed in a future release.") + Chef.log_deprecation(alternative) + Chef.log_deprecation("Called from:") + caller[0..3].each {|c| Chef.log_deprecation(c)} instance_variable_set("@#{name}", value) end end |