summaryrefslogtreecommitdiff
path: root/lib/chef/provider/template.rb
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2017-03-08 12:18:28 +0000
committerThom May <thom@chef.io>2017-03-08 12:18:28 +0000
commit2b6c0ef564849655be2d03cb3017c7a3bf423c92 (patch)
tree2e4198a7f34dd7e89c43d1526b903dddb0381b02 /lib/chef/provider/template.rb
parentf312ab8b2f46f6211fc0b732890c69e4dae46c77 (diff)
downloadchef-2b6c0ef564849655be2d03cb3017c7a3bf423c92.tar.gz
Revert "Remove all 11 era deprecations"
This reverts commit f312ab8b2f46f6211fc0b732890c69e4dae46c77.
Diffstat (limited to 'lib/chef/provider/template.rb')
-rw-r--r--lib/chef/provider/template.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/provider/template.rb b/lib/chef/provider/template.rb
index 05cdbdbf62..7cb0ba008d 100644
--- a/lib/chef/provider/template.rb
+++ b/lib/chef/provider/template.rb
@@ -19,12 +19,18 @@
require "chef/provider/template_finder"
require "chef/provider/file"
+require "chef/deprecation/provider/template"
+require "chef/deprecation/warnings"
class Chef
class Provider
class Template < Chef::Provider::File
provides :template
+ extend Chef::Deprecation::Warnings
+ include Chef::Deprecation::Provider::Template
+ add_deprecation_warnings_for(Chef::Deprecation::Provider::Template.instance_methods)
+
def initialize(new_resource, run_context)
@content_class = Chef::Provider::Template::Content
super