This module contains the deprecated functions of Chef::Provider::Template. These functions are refactored to different components. They are frozen and will be removed in Chef 12.
# File lib/chef/deprecation/provider/template.rb, line 56 def content_matches? @current_resource.checksum == @new_resource.checksum end
# File lib/chef/deprecation/provider/template.rb, line 50 def rendered(rendered_template) @new_resource.checksum(checksum(rendered_template.path)) Chef::Log.debug("Current content's checksum: #{@current_resource.checksum}") Chef::Log.debug("Rendered content's checksum: #{@new_resource.checksum}") end
# File lib/chef/deprecation/provider/template.rb, line 46 def resource_cookbook @new_resource.cookbook || @new_resource.cookbook_name end
Generated with the Darkfish Rdoc Generator 2.