Skip to content
Ryota Arai edited this page Jun 18, 2015 · 17 revisions

Actions

  • create
  • delete
  • edit
  • nothing

Attributes

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

Example

# 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