summaryrefslogtreecommitdiff
path: root/lib/chef/provider/remote_directory.rb
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2017-03-08 12:19:03 +0000
committerGitHub <noreply@github.com>2017-03-08 12:19:03 +0000
commit7a5f81001ce4f53a96062d2202307516f4c0948f (patch)
tree2e4198a7f34dd7e89c43d1526b903dddb0381b02 /lib/chef/provider/remote_directory.rb
parentf312ab8b2f46f6211fc0b732890c69e4dae46c77 (diff)
parent2b6c0ef564849655be2d03cb3017c7a3bf423c92 (diff)
downloadchef-7a5f81001ce4f53a96062d2202307516f4c0948f.tar.gz
Merge pull request #5879 from chef/tm/revert_mis_commit
Revert "Remove all 11 era deprecations"
Diffstat (limited to 'lib/chef/provider/remote_directory.rb')
-rw-r--r--lib/chef/provider/remote_directory.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/chef/provider/remote_directory.rb b/lib/chef/provider/remote_directory.rb
index 6f4956de96..d2f90d233b 100644
--- a/lib/chef/provider/remote_directory.rb
+++ b/lib/chef/provider/remote_directory.rb
@@ -23,6 +23,8 @@ require "chef/resource/cookbook_file"
require "chef/mixin/file_class"
require "chef/platform/query_helpers"
require "chef/util/path_helper"
+require "chef/deprecation/warnings"
+require "chef/deprecation/provider/remote_directory"
require "forwardable"
@@ -266,6 +268,16 @@ class Chef
res
end
+ #
+ # Add back deprecated methods and aliases that are internally unused and should be removed in Chef-13
+ #
+ extend Chef::Deprecation::Warnings
+ include Chef::Deprecation::Provider::RemoteDirectory
+ add_deprecation_warnings_for(Chef::Deprecation::Provider::RemoteDirectory.instance_methods)
+
+ alias_method :resource_for_directory, :directory_resource
+ add_deprecation_warnings_for([:resource_for_directory])
+
end
end
end