summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-05-30 21:04:30 -0700
committerTim Smith <tsmith@chef.io>2018-05-30 21:04:30 -0700
commitcb8f2a4212e82b3ae50bda772391c435c0d4a55a (patch)
tree229f3b5379792bf8e685d0d7f6ffdad983cef852
parent087827cc0217273f8e33ca2050b27285ff8bc127 (diff)
downloadchef-cb8f2a4212e82b3ae50bda772391c435c0d4a55a.tar.gz
Add proper deprecated tags on methods
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--chef-config/lib/chef-config/path_helper.rb2
-rw-r--r--lib/chef/http/http_request.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/chef-config/lib/chef-config/path_helper.rb b/chef-config/lib/chef-config/path_helper.rb
index 6341ffe4e6..84eadd86b4 100644
--- a/chef-config/lib/chef-config/path_helper.rb
+++ b/chef-config/lib/chef-config/path_helper.rb
@@ -152,7 +152,7 @@ module ChefConfig
canonical_path(path1) == canonical_path(path2)
end
- # Note: this method is deprecated. Please use escape_glob_dirs
+ # @deprecated this method is deprecated. Please use escape_glob_dirs
# Paths which may contain glob-reserved characters need
# to be escaped before globbing can be done.
# http://stackoverflow.com/questions/14127343
diff --git a/lib/chef/http/http_request.rb b/lib/chef/http/http_request.rb
index de589e429e..149e207544 100644
--- a/lib/chef/http/http_request.rb
+++ b/lib/chef/http/http_request.rb
@@ -100,7 +100,7 @@ class Chef
@url.path.empty? ? SLASH : @url.path
end
- # DEPRECATED. Call request on an HTTP client object instead.
+ # @deprecated Call request on an HTTP client object instead.
def call
hide_net_http_bug do
http_client.request(http_request) do |response|
@@ -114,7 +114,7 @@ class Chef
Chef::Config
end
- # DEPRECATED. Call request on an HTTP client object instead.
+ # @deprecated Call request on an HTTP client object instead.
def http_client
@http_client ||= BasicClient.new(url).http_client
end