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

Add a block option to checkout_git_repository #23235

Merged

Conversation

agrare
Copy link
Member

@agrare agrare commented Oct 16, 2024

Currently it is up to the caller to create the temporary directory, pass that to checkout_git_repository, and clean that directory up.

If a caller doesn't need to keep the directory around across method invocations they could pass a block in and let the checkout_git_repository method clean up the temp directory.

Ref: ManageIQ/manageiq-providers-embedded_terraform#75 (comment)

Follow-ups:

@agrare agrare force-pushed the configuration_script_source_git_repo_checkout branch from 1ecf92f to 3f979d4 Compare October 16, 2024 19:53
@Fryguy
Copy link
Member

Fryguy commented Oct 16, 2024

@agrare Would it be possible to add specs for this?

@agrare
Copy link
Member Author

agrare commented Oct 16, 2024

Yeah let me take a look at it

@agrare agrare force-pushed the configuration_script_source_git_repo_checkout branch 2 times, most recently from 4c8c159 to a28c407 Compare October 17, 2024 18:42
@agrare agrare force-pushed the configuration_script_source_git_repo_checkout branch from a28c407 to f243d3a Compare October 17, 2024 18:46
@miq-bot
Copy link
Member

miq-bot commented Oct 17, 2024

Checked commit agrare@f243d3a with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.51.0, and yamllint
3 files checked, 0 offenses detected
Everything looks fine. 🍰

@Fryguy Fryguy merged commit 683768c into ManageIQ:master Oct 17, 2024
11 of 12 checks passed
@Fryguy Fryguy self-assigned this Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants