Skip to content
Yusuke Nakamura edited this page Dec 2, 2021 · 17 revisions

Actions

  • delete
  • edit
  • create
  • nothing

Attributes

Name Value Default Required
action one of Symbol, Array :create Yes
user String (no default) No
cwd String (no default) No
path String (name of resource) No
content String (no default) No
sensitive (no default) 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.12.3