class ChefSpec::Renderer

def content

Returns:
  • (String, nil) -
def content
  case resource_name(resource)
  when :template
    content_from_template(chef_run, resource)
  when :file
    content_from_file(chef_run, resource)
  when :cookbook_file
    content_from_cookbook_file(chef_run, resource)
  else
    nil
  end
end