-
Notifications
You must be signed in to change notification settings - Fork 437
Open
Description
chef-web-docs/data/infra/resources/bash.yaml
Lines 50 to 64 in 7ec349e
| - property: code | |
| ruby_type: String | |
| required: true | |
| description_list: | |
| - markdown: A quoted string of code to be executed. | |
| - property: command | |
| ruby_type: String, Array | |
| required: false | |
| default_value: The resource block's name | |
| description_list: | |
| - markdown: An optional property to set the command to be executed if it differs | |
| from the resource block's name. | |
| - note: | |
| markdown: Use the **execute** resource to run a single command. Use multiple | |
| **execute** resource blocks to run multiple commands. |
Its not clear how code interacts with command attributes if at all.
It appears that bash is a wrapper around script and script inherits attributes from the more generic execute resource.
- Is
commandinherited from higher scope resource? Or is it overridden to act differently bybashspecifcally? - if
codeis required, what different purpose doescommandserve? - if this is just a wrapper around the more generic
scriptperhaps this should be stated clearly and make references toscriptinstead ofexecuteresource?
Metadata
Metadata
Assignees
Labels
No labels