summaryrefslogtreecommitdiff
path: root/lib/chef/deprecation
diff options
context:
space:
mode:
authorMarc Chamberland <chamberland.marc@gmail.com>2019-11-05 13:25:35 -0500
committerMarc Chamberland <chamberland.marc@gmail.com>2019-12-05 08:47:17 -0500
commit13c693c0669c1f65331cd244797529c514cee047 (patch)
tree0ce61e61a954ae03452d565b8e08f0f88e6c2ae6 /lib/chef/deprecation
parente1a8a9d22f587e514b208d747d86a64979bad8db (diff)
downloadchef-13c693c0669c1f65331cd244797529c514cee047.tar.gz
some leftover/new "Chef" references converted to distro constants
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
Diffstat (limited to 'lib/chef/deprecation')
-rw-r--r--lib/chef/deprecation/warnings.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/deprecation/warnings.rb b/lib/chef/deprecation/warnings.rb
index 7120b87f43..ae521ac48e 100644
--- a/lib/chef/deprecation/warnings.rb
+++ b/lib/chef/deprecation/warnings.rb
@@ -21,11 +21,12 @@ class Chef
module Warnings
require_relative "../version"
+ require_relative "../dist"
def add_deprecation_warnings_for(method_names)
method_names.each do |name|
define_method(name) do |*args|
- message = "Method '#{name}' of '#{self.class}' is deprecated. It will be removed in Chef #{Chef::VERSION.to_i.next}."
+ message = "Method '#{name}' of '#{self.class}' is deprecated. It will be removed in #{Chef::Dist::PRODUCT} #{Chef::VERSION.to_i.next}."
message << " Please update your cookbooks accordingly."
Chef.deprecated(:internal_api, message)
super(*args)