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

Rework the WorkDir and Persistance in ShellExecutioner #15

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

cjonesy
Copy link
Contributor

@cjonesy cjonesy commented Oct 2, 2024

Reworking the ShellExecutioner to make it possible to persist the data that triggered an execution. This can be helpful when troubleshooting a shell command.

I also discovered a bug where multiple executions would result in failures due to the workdir not existing. The ShellExecutioner was creating the directory when New was called, and it was removing it in Execute (without recreating). There is really no need to create the directory inside of New so I moved the creation and cleanup into Execute instead.

Tests have been added for the bug and also the new functionality PersistData.

@cjonesy cjonesy requested a review from a team as a code owner October 2, 2024 19:03
@cjonesy cjonesy merged commit a8d5ec3 into main Oct 2, 2024
4 checks passed
@cjonesy cjonesy deleted the shell-exec-rework branch October 2, 2024 19:30
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

Successfully merging this pull request may close these issues.

2 participants