-
-
Save danielsdeleo/74f2c72b64581b7ef182 to your computer and use it in GitHub Desktop.
put this in your client.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'chef/mixin/template' | |
require 'chef/provider/template' | |
module Chef::Mixin::Template | |
alias :original_render_template :render_template | |
def render_template(template, context) | |
STDERR.puts("rendering template with:") | |
STDERR.puts(template) | |
original_render_template(template, context) | |
end | |
end | |
class Chef::Provider::Template | |
alias :original_template_location :template_location | |
def template_location | |
result = original_template_location | |
STDERR.puts("Found template for #{@new_resource} at path #{result}") | |
result | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment