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

auto_scripts smart attribute #2575

Closed
Tracked by #1245
johrstrom opened this issue Feb 14, 2023 · 0 comments · Fixed by #2661
Closed
Tracked by #1245

auto_scripts smart attribute #2575

johrstrom opened this issue Feb 14, 2023 · 0 comments · Fixed by #2661
Assignees
Milestone

Comments

@johrstrom
Copy link
Contributor

johrstrom commented Feb 14, 2023

The new job composer, for convienence is going to need an automatic smart attribute that can collect all the shell scripts in the project directory.

So, given this configuration:

form:
  - auto_scripts
attributes:
  auto_scripts:
    project_directory: '/path/to/some/directory'

The resulting smart_attribute should then generate a list of options from Dir.glob("#{project_directory}/*.{sh,bash}")

┆Issue is synchronized with this Asana task by Unito

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants