Resources

Ryota Arai edited this page Mar 30, 2018 · 26 revisions

Resource Type

Common Attributes

All resource types have the following common attributes.

  • action
    • Symbol or Array
    • If you would like to execute multiple actions, the action can be an Array of Symbols.
  • only_if
    • String
    • If only_if command exits with non-zero status, the resource will not be executed.
  • not_if
    • String
    • If not_if command exits with zero status, the resource will not be executed.
  • notifies
    • notifies :action, resource_type[resource_name]", timing: :delayed (timing: :delayed is a default value)
    • notifies :action, resource_type[resource_name]", timing: :immediately
  • subscribes
    • subscribes :action, resource_type[resource_name]", timing: :delayed (timing: :delayed is a default value)
    • subscribes :action, resource_type[resource_name]", timing: :immediately
  • user
    • String
    • If you specified this, commands related with the resource will be executed as the user.

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

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.