diff options
Diffstat (limited to 'lib-backcompat/chef')
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 |