-
Notifications
You must be signed in to change notification settings - Fork 125
template resource
Ryota Arai edited this page Jun 18, 2015
·
17 revisions
- create
- delete
- edit
- nothing
Name | Value | Default | Required |
---|---|---|---|
action |
one of Symbol, Array | :create |
Yes |
user |
String | (no default) | No |
path |
String | (name of resource) | No |
content |
String | "" |
No |
mode |
String | (no default) | No |
owner |
String | (no default) | No |
group |
String | (no default) | No |
block |
Proc | Proc |
No |
source |
one of String, Symbol | :auto |
No |
variables |
Hash | {} |
No |
# template.erb
Hello, <%= @message %>
# recipe
template "/path/to/dest" do
action :create
source "template.erb"
variables(message: "World")
end
/path/to/dest will be:
Hello, World
Do not edit this page because this is generated automatically with Itamae v1.3.1