diff options
author | danielsdeleo <dan@opscode.com> | 2013-05-27 12:18:41 -0700 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-05-29 11:32:22 -0700 |
commit | 7761abd2ef185acca93c9330db235f6704689ae4 (patch) | |
tree | 752639885f2a7e7a095a82b2613a8adca9159132 /lib/chef/provider/template | |
parent | ca4cd1f830fae2fac3e2c18bbd2693b0caddcb33 (diff) | |
download | chef-7761abd2ef185acca93c9330db235f6704689ae4.tar.gz |
Move helper module compilation inside template resource
- Resource::Template compiles helper methods/module bodies into a
collection of modules for inclusion into the template context.
- Resource::Template checks for obvious invalid input to helper
definition methods.
Diffstat (limited to 'lib/chef/provider/template')
-rw-r--r-- | lib/chef/provider/template/content.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/chef/provider/template/content.rb b/lib/chef/provider/template/content.rb index f26b7a5b92..9de9ad9ea2 100644 --- a/lib/chef/provider/template/content.rb +++ b/lib/chef/provider/template/content.rb @@ -39,8 +39,6 @@ class Chef context = TemplateContext.new(@new_resource.variables) context[:node] = @run_context.node context[:template_finder] = template_finder - context._define_helpers(@new_resource.inline_helper_blocks) - context._define_helpers_from_blocks(@new_resource.inline_helper_modules) context._extend_modules(@new_resource.helper_modules) file = nil render_template(IO.read(template_location), context) { |t| file = t } |