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

Example

edit action

# recipe
file "/path/to/file" do
  action :edit
  block do |content|
    content.gsub!("world", "Itamae")
  end
end

Do not edit this page because this is generated automatically with Itamae v1.12.3