From d74f555a6f2039aa573e2d35d65e7041dbc70c61 Mon Sep 17 00:00:00 2001 From: Xabier de Zuazo Date: Sun, 7 Apr 2013 10:04:02 +0200 Subject: [PATCH] README: fixed body_template example --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a394d7c..eb4e6e0 100644 --- a/README.md +++ b/README.md @@ -159,8 +159,8 @@ This configuration option needs to contain the full path of an erubis template. ```ruby # recipe "myapp::sns_handler" -template "/tmp/chef_handler_sns_body.erb" do - source "chef_handler_sns_body_erb.erb" +cookbook_file "chef_handler_sns_body.erb" do + path "/tmp/chef_handler_sns_body.erb" # [...] end @@ -178,7 +178,7 @@ end ``` ```erb -<%# template "myapp/templates/default/chef_handler_sns_body_erb.erb" %> +<%# file "myapp/files/default/chef_handler_sns_body_erb.erb" %> Node Name: <%= node.name %> <% if node.attribute?("fqdn") -%>