From 2fe975c69a1abd8536e9f0158cb85d45f8c2f54b Mon Sep 17 00:00:00 2001 From: Thom May Date: Thu, 14 Apr 2016 15:13:33 +0100 Subject: Move deprecated error classes into backcompat --- lib/chef/chef_fs/file_system/already_exists_error.rb | 20 -------------------- .../chef_fs/file_system/cookbook_frozen_error.rb | 20 -------------------- .../default_environment_cannot_be_modified_error.rb | 20 -------------------- lib/chef/chef_fs/file_system/file_system_error.rb | 20 -------------------- .../file_system/must_delete_recursively_error.rb | 20 -------------------- lib/chef/chef_fs/file_system/not_found_error.rb | 20 -------------------- .../chef_fs/file_system/operation_failed_error.rb | 20 -------------------- .../file_system/operation_not_allowed_error.rb | 20 -------------------- 8 files changed, 160 deletions(-) delete mode 100644 lib/chef/chef_fs/file_system/already_exists_error.rb delete mode 100644 lib/chef/chef_fs/file_system/cookbook_frozen_error.rb delete mode 100644 lib/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb delete mode 100644 lib/chef/chef_fs/file_system/file_system_error.rb delete mode 100644 lib/chef/chef_fs/file_system/must_delete_recursively_error.rb delete mode 100644 lib/chef/chef_fs/file_system/not_found_error.rb delete mode 100644 lib/chef/chef_fs/file_system/operation_failed_error.rb delete mode 100644 lib/chef/chef_fs/file_system/operation_not_allowed_error.rb (limited to 'lib/chef/chef_fs') diff --git a/lib/chef/chef_fs/file_system/already_exists_error.rb b/lib/chef/chef_fs/file_system/already_exists_error.rb deleted file mode 100644 index 6d9973e8a4..0000000000 --- a/lib/chef/chef_fs/file_system/already_exists_error.rb +++ /dev/null @@ -1,20 +0,0 @@ -# -# Author:: John Keiser () -# Copyright:: Copyright 2012-2016, Chef Software Inc. -# License:: Apache License, Version 2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -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")}'." diff --git a/lib/chef/chef_fs/file_system/cookbook_frozen_error.rb b/lib/chef/chef_fs/file_system/cookbook_frozen_error.rb deleted file mode 100644 index 6d9973e8a4..0000000000 --- a/lib/chef/chef_fs/file_system/cookbook_frozen_error.rb +++ /dev/null @@ -1,20 +0,0 @@ -# -# Author:: John Keiser () -# Copyright:: Copyright 2012-2016, Chef Software Inc. -# License:: Apache License, Version 2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -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")}'." diff --git a/lib/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb b/lib/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb deleted file mode 100644 index 6d9973e8a4..0000000000 --- a/lib/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb +++ /dev/null @@ -1,20 +0,0 @@ -# -# Author:: John Keiser () -# Copyright:: Copyright 2012-2016, Chef Software Inc. -# License:: Apache License, Version 2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -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")}'." diff --git a/lib/chef/chef_fs/file_system/file_system_error.rb b/lib/chef/chef_fs/file_system/file_system_error.rb deleted file mode 100644 index 6d9973e8a4..0000000000 --- a/lib/chef/chef_fs/file_system/file_system_error.rb +++ /dev/null @@ -1,20 +0,0 @@ -# -# Author:: John Keiser () -# Copyright:: Copyright 2012-2016, Chef Software Inc. -# License:: Apache License, Version 2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -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")}'." diff --git a/lib/chef/chef_fs/file_system/must_delete_recursively_error.rb b/lib/chef/chef_fs/file_system/must_delete_recursively_error.rb deleted file mode 100644 index 6d9973e8a4..0000000000 --- a/lib/chef/chef_fs/file_system/must_delete_recursively_error.rb +++ /dev/null @@ -1,20 +0,0 @@ -# -# Author:: John Keiser () -# Copyright:: Copyright 2012-2016, Chef Software Inc. -# License:: Apache License, Version 2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -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")}'." diff --git a/lib/chef/chef_fs/file_system/not_found_error.rb b/lib/chef/chef_fs/file_system/not_found_error.rb deleted file mode 100644 index 6d9973e8a4..0000000000 --- a/lib/chef/chef_fs/file_system/not_found_error.rb +++ /dev/null @@ -1,20 +0,0 @@ -# -# Author:: John Keiser () -# Copyright:: Copyright 2012-2016, Chef Software Inc. -# License:: Apache License, Version 2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -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")}'." diff --git a/lib/chef/chef_fs/file_system/operation_failed_error.rb b/lib/chef/chef_fs/file_system/operation_failed_error.rb deleted file mode 100644 index 6d9973e8a4..0000000000 --- a/lib/chef/chef_fs/file_system/operation_failed_error.rb +++ /dev/null @@ -1,20 +0,0 @@ -# -# Author:: John Keiser () -# Copyright:: Copyright 2012-2016, Chef Software Inc. -# License:: Apache License, Version 2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -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")}'." diff --git a/lib/chef/chef_fs/file_system/operation_not_allowed_error.rb b/lib/chef/chef_fs/file_system/operation_not_allowed_error.rb deleted file mode 100644 index 6d9973e8a4..0000000000 --- a/lib/chef/chef_fs/file_system/operation_not_allowed_error.rb +++ /dev/null @@ -1,20 +0,0 @@ -# -# Author:: John Keiser () -# Copyright:: Copyright 2012-2016, Chef Software Inc. -# License:: Apache License, Version 2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -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")}'." -- cgit v1.2.1