Open
Conversation
fixes: #41 Signed-off-by: Martin Alfke <ma@betadots.de>
jay7x
reviewed
Apr 8, 2026
| raise Exception "No reference output found in references_output/#{component}" unless File.exist?("references_output/#{component}") | ||
|
|
||
| require 'fileutils' | ||
| FileUtils.cp_r("references_output/#{component}/.", "source/#{component}/latest") |
Contributor
There was a problem hiding this comment.
Shall we cleanup it first? What if there are files deleted in the current version?
I'd maybe delete or rename the existing "latest" directory first and deploy after.
Another option is "rsync -a --delete".
Contributor
Author
There was a problem hiding this comment.
But this may be done for the subdirectories only.
We need to ensure that files, which are directly in source/puppet/ folder do not have a file with the same name that comes from references.
I will give it a try.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes: #41
Checklist
I have:
Signed-off-byannotation to each of my commits