|
- 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
command inherited from higher scope resource? Or is it overridden to act differently by bash specifcally?
- if
code is required, what different purpose does command serve?
- if this is just a wrapper around the more generic
script perhaps this should be stated clearly and make references to script instead of execute resource?
chef-web-docs/data/infra/resources/bash.yaml
Lines 50 to 64 in 7ec349e
Its not clear how
codeinteracts withcommandattributes if at all.It appears that
bashis a wrapper aroundscriptandscriptinherits attributes from the more genericexecuteresource.commandinherited from higher scope resource? Or is it overridden to act differently bybashspecifcally?codeis required, what different purpose doescommandserve?scriptperhaps this should be stated clearly and make references toscriptinstead ofexecuteresource?