diff options
author | Thom May <thom@chef.io> | 2017-03-08 12:18:28 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2017-03-08 12:18:28 +0000 |
commit | 2b6c0ef564849655be2d03cb3017c7a3bf423c92 (patch) | |
tree | 2e4198a7f34dd7e89c43d1526b903dddb0381b02 /lib/chef/provider/file.rb | |
parent | f312ab8b2f46f6211fc0b732890c69e4dae46c77 (diff) | |
download | chef-2b6c0ef564849655be2d03cb3017c7a3bf423c92.tar.gz |
Revert "Remove all 11 era deprecations"
This reverts commit f312ab8b2f46f6211fc0b732890c69e4dae46c77.
Diffstat (limited to 'lib/chef/provider/file.rb')
-rw-r--r-- | lib/chef/provider/file.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/provider/file.rb b/lib/chef/provider/file.rb index 2bf3561853..ecde068751 100644 --- a/lib/chef/provider/file.rb +++ b/lib/chef/provider/file.rb @@ -30,6 +30,8 @@ require "chef/mixin/enforce_ownership_and_permissions" require "chef/util/backup" require "chef/util/diff" require "chef/util/selinux" +require "chef/deprecation/provider/file" +require "chef/deprecation/warnings" require "chef/file_content_management/deploy" # The Tao of File Providers: @@ -50,6 +52,10 @@ class Chef include Chef::Util::Selinux include Chef::Mixin::FileClass + extend Chef::Deprecation::Warnings + include Chef::Deprecation::Provider::File + add_deprecation_warnings_for(Chef::Deprecation::Provider::File.instance_methods) + provides :file attr_reader :deployment_strategy |