summaryrefslogtreecommitdiff
path: root/lib/chef/mixin/template.rb
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-05-30 14:31:17 -0700
committersersut <serdar@opscode.com>2013-05-30 14:31:17 -0700
commite36a9237681c5ac05914501f00fad032ef6fcf8c (patch)
treeeddf0d1fea797084188598f21eb98a953fa5642b /lib/chef/mixin/template.rb
parent32172b48de16b884a539ee4358b52d711f86b368 (diff)
downloadchef-e36a9237681c5ac05914501f00fad032ef6fcf8c.tar.gz
Fix method override warnings tests for the new methods.
Diffstat (limited to 'lib/chef/mixin/template.rb')
-rw-r--r--lib/chef/mixin/template.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/mixin/template.rb b/lib/chef/mixin/template.rb
index d6cf564f40..f92bbb4325 100644
--- a/lib/chef/mixin/template.rb
+++ b/lib/chef/mixin/template.rb
@@ -136,7 +136,8 @@ class Chef
def _extend_modules(module_names)
module_names.each do |mod|
- [:node, :render].each do |core_method|
+ context_methods = [:node, :render, :render_template, :render_template_from_string]
+ context_methods.each do |core_method|
if mod.method_defined?(core_method) or mod.private_method_defined?(core_method)
Chef::Log.warn("Core template method `#{core_method}' overridden by extension module #{mod}")
end