summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook_version.rb
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-09-25 07:19:48 -0700
committerJohn Keiser <john@johnkeiser.com>2015-09-25 12:22:19 -0700
commit424b2dda9b4a2a0ca3e7ca8c9a598643b303ec0f (patch)
treea687cef44f257a6b7402da826ed9292164707f20 /lib/chef/cookbook_version.rb
parentc576de210dc42889d796074187a109a8d0dd6a19 (diff)
downloadchef-424b2dda9b4a2a0ca3e7ca8c9a598643b303ec0f.tar.gz
Find the spot the user called and use that as the deprecation location
Diffstat (limited to 'lib/chef/cookbook_version.rb')
-rw-r--r--lib/chef/cookbook_version.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/cookbook_version.rb b/lib/chef/cookbook_version.rb
index bff3146572..3cdfd8c10b 100644
--- a/lib/chef/cookbook_version.rb
+++ b/lib/chef/cookbook_version.rb
@@ -51,12 +51,12 @@ class Chef
attr_accessor :metadata_filenames
def status=(new_status)
- Chef.log_deprecation("Deprecated method `status' called. This method will be removed.", caller(1..1))
+ Chef.log_deprecation("Deprecated method `status' called. This method will be removed.")
@status = new_status
end
def status
- Chef.log_deprecation("Deprecated method `status' called. This method will be removed.", caller(1..1))
+ Chef.log_deprecation("Deprecated method `status' called. This method will be removed.")
@status
end
@@ -480,7 +480,7 @@ class Chef
# @deprecated This method was used by the Ruby Chef Server and is no longer
# needed. There is no replacement.
def generate_manifest_with_urls(&url_generator)
- Chef.log_deprecation("Deprecated method #generate_manifest_with_urls.", caller(1..1))
+ Chef.log_deprecation("Deprecated method #generate_manifest_with_urls.")
rendered_manifest = manifest.dup
COOKBOOK_SEGMENTS.each do |segment|