diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2018-06-14 20:30:22 -0700 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2018-06-14 20:30:22 -0700 |
commit | ba7e7e1f84df03454ec058e4a91114f93dc4553f (patch) | |
tree | 94c10e7578eee0075b74a62c97302c22a59dfebe /lib/chef/deprecated.rb | |
parent | ae6b9e70fdceae5c37b4919c1b0fd105fd40d121 (diff) | |
download | chef-ba7e7e1f84df03454ec058e4a91114f93dc4553f.tar.gz |
Tweak the deprecation warning message to look a little nicer.
Deprecation CHEF-18 from /Users/coderanger/src/chef/spec/support/shared/integration/knife_support.rb:104:in `block in knife'
Starting local-mode server in deprecated socket mode
Please see https://docs.chef.io/deprecations_local_listen.html for further details and information on how to correct this problem.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'lib/chef/deprecated.rb')
-rw-r--r-- | lib/chef/deprecated.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/deprecated.rb b/lib/chef/deprecated.rb index 944cecf61b..d9a8df7b83 100644 --- a/lib/chef/deprecated.rb +++ b/lib/chef/deprecated.rb @@ -54,7 +54,7 @@ class Chef # # @return [String] def to_s - "#{message} (CHEF-#{self.class.deprecation_id})#{location}.\n#{link}" + "Deprecation CHEF-#{self.class.deprecation_id} from #{location}\n\n #{message}\n\n#{link}" end # Check if this deprecation has been silenced. @@ -213,7 +213,7 @@ class Chef target 24 def to_s - "#{message}\n#{location}" + "Deprecated resource property used from #{location}\n\n #{message}\n\nPlease consult the resource documentation for more information." end end @@ -223,7 +223,7 @@ class Chef end def to_s - "#{message} #{location}.\n#{link}" + "Deprecation from #{location}\n\n #{message}\n\n#{link}" end end |