diff options
author | Thom May <thom@chef.io> | 2016-10-14 16:46:51 +0100 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-11-16 16:28:15 +0000 |
commit | 64b8b0efd90e59ad609ba30fe4bc7ff19e70e940 (patch) | |
tree | 779c33247a0617eed1db6b6a662635a0f91d37d3 /lib-backcompat | |
parent | bedcbd5f52448d24fdd7ab26ab79185c011beee3 (diff) | |
download | chef-64b8b0efd90e59ad609ba30fe4bc7ff19e70e940.tar.gz |
Structure deprecations with additional metadatatm/deprecation_with_url
This adds URLs to each class of deprecation, and correctly prints and
formats them for maximum user efficiency. We also provide the URL to the
data collector for Visibility to ingest.
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'lib-backcompat')
10 files changed, 10 insertions, 10 deletions
diff --git a/lib-backcompat/chef/chef_fs/file_system/already_exists_error.rb b/lib-backcompat/chef/chef_fs/file_system/already_exists_error.rb index 6d9973e8a4..75cebe5497 100644 --- a/lib-backcompat/chef/chef_fs/file_system/already_exists_error.rb +++ b/lib-backcompat/chef/chef_fs/file_system/already_exists_error.rb @@ -17,4 +17,4 @@ # require "chef/chef_fs/file_system/exceptions" -Chef.log_deprecation "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." +Chef.deprecated :internal_api, "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." diff --git a/lib-backcompat/chef/chef_fs/file_system/cookbook_frozen_error.rb b/lib-backcompat/chef/chef_fs/file_system/cookbook_frozen_error.rb index 6d9973e8a4..75cebe5497 100644 --- a/lib-backcompat/chef/chef_fs/file_system/cookbook_frozen_error.rb +++ b/lib-backcompat/chef/chef_fs/file_system/cookbook_frozen_error.rb @@ -17,4 +17,4 @@ # require "chef/chef_fs/file_system/exceptions" -Chef.log_deprecation "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." +Chef.deprecated :internal_api, "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." diff --git a/lib-backcompat/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb b/lib-backcompat/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb index 6d9973e8a4..75cebe5497 100644 --- a/lib-backcompat/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb +++ b/lib-backcompat/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb @@ -17,4 +17,4 @@ # require "chef/chef_fs/file_system/exceptions" -Chef.log_deprecation "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." +Chef.deprecated :internal_api, "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." diff --git a/lib-backcompat/chef/chef_fs/file_system/file_system_error.rb b/lib-backcompat/chef/chef_fs/file_system/file_system_error.rb index 6d9973e8a4..75cebe5497 100644 --- a/lib-backcompat/chef/chef_fs/file_system/file_system_error.rb +++ b/lib-backcompat/chef/chef_fs/file_system/file_system_error.rb @@ -17,4 +17,4 @@ # require "chef/chef_fs/file_system/exceptions" -Chef.log_deprecation "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." +Chef.deprecated :internal_api, "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." diff --git a/lib-backcompat/chef/chef_fs/file_system/must_delete_recursively_error.rb b/lib-backcompat/chef/chef_fs/file_system/must_delete_recursively_error.rb index 6d9973e8a4..75cebe5497 100644 --- a/lib-backcompat/chef/chef_fs/file_system/must_delete_recursively_error.rb +++ b/lib-backcompat/chef/chef_fs/file_system/must_delete_recursively_error.rb @@ -17,4 +17,4 @@ # require "chef/chef_fs/file_system/exceptions" -Chef.log_deprecation "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." +Chef.deprecated :internal_api, "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." diff --git a/lib-backcompat/chef/chef_fs/file_system/not_found_error.rb b/lib-backcompat/chef/chef_fs/file_system/not_found_error.rb index 6d9973e8a4..75cebe5497 100644 --- a/lib-backcompat/chef/chef_fs/file_system/not_found_error.rb +++ b/lib-backcompat/chef/chef_fs/file_system/not_found_error.rb @@ -17,4 +17,4 @@ # require "chef/chef_fs/file_system/exceptions" -Chef.log_deprecation "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." +Chef.deprecated :internal_api, "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." diff --git a/lib-backcompat/chef/chef_fs/file_system/operation_failed_error.rb b/lib-backcompat/chef/chef_fs/file_system/operation_failed_error.rb index 6d9973e8a4..75cebe5497 100644 --- a/lib-backcompat/chef/chef_fs/file_system/operation_failed_error.rb +++ b/lib-backcompat/chef/chef_fs/file_system/operation_failed_error.rb @@ -17,4 +17,4 @@ # require "chef/chef_fs/file_system/exceptions" -Chef.log_deprecation "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." +Chef.deprecated :internal_api, "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." diff --git a/lib-backcompat/chef/chef_fs/file_system/operation_not_allowed_error.rb b/lib-backcompat/chef/chef_fs/file_system/operation_not_allowed_error.rb index 6d9973e8a4..75cebe5497 100644 --- a/lib-backcompat/chef/chef_fs/file_system/operation_not_allowed_error.rb +++ b/lib-backcompat/chef/chef_fs/file_system/operation_not_allowed_error.rb @@ -17,4 +17,4 @@ # require "chef/chef_fs/file_system/exceptions" -Chef.log_deprecation "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." +Chef.deprecated :internal_api, "Individual ChefFS error files are deprecated. Please require 'chef/chef_fs/file_system/exceptions' rather than 'chef/chef_fs/file_system/#{File.basename(__FILE__, ".rb")}'." diff --git a/lib-backcompat/chef/chef_fs/file_system/repository/chef_repository_file_system_entry.rb b/lib-backcompat/chef/chef_fs/file_system/repository/chef_repository_file_system_entry.rb index eb2c3e8ff6..7668c6b174 100644 --- a/lib-backcompat/chef/chef_fs/file_system/repository/chef_repository_file_system_entry.rb +++ b/lib-backcompat/chef/chef_fs/file_system/repository/chef_repository_file_system_entry.rb @@ -1,6 +1,6 @@ require "chef/chef_fs/file_system/repository/file_system_entry" module Chef::ChefFS::FileSystem::Repository - Chef.log_deprecation "Chef::ChefFS::FileSystem::Repository::ChefRepositoryFileSystemEntry is deprecated. Please use FileSystemEntry directly" + Chef.deprecated :internal_api, "Chef::ChefFS::FileSystem::Repository::ChefRepositoryFileSystemEntry is deprecated. Please use FileSystemEntry directly" ChefRepositoryFileSystemEntry = FileSystemEntry end diff --git a/lib-backcompat/chef/chef_fs/file_system/repository/file_system_root_dir.rb b/lib-backcompat/chef/chef_fs/file_system/repository/file_system_root_dir.rb index 8565ee6029..1c8bb87d72 100644 --- a/lib-backcompat/chef/chef_fs/file_system/repository/file_system_root_dir.rb +++ b/lib-backcompat/chef/chef_fs/file_system/repository/file_system_root_dir.rb @@ -24,7 +24,7 @@ class Chef module Repository class FileSystemRootDir < FileSystemEntry def initialize(file_path) - Chef.log_deprecation "Chef::ChefFS::FileSystem::Repository::FileSystemRootDir is deprecated." + Chef.deprecated :internal_api, "Chef::ChefFS::FileSystem::Repository::FileSystemRootDir is deprecated." super("", nil, file_path) end end |