Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for bash and other similar commands #4251

Open
matthewhively opened this issue Mar 18, 2024 · 0 comments
Open

Documentation for bash and other similar commands #4251

matthewhively opened this issue Mar 18, 2024 · 0 comments

Comments

@matthewhively
Copy link

- 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.

  1. Is command inherited from higher scope resource? Or is it overridden to act differently by bash specifcally?
  2. if code is required, what different purpose does command serve?
  3. 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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant