Skip to content

feat(build): automate references deployment#42

Open
tuxmea wants to merge 1 commit intomasterfrom
references_rake_task
Open

feat(build): automate references deployment#42
tuxmea wants to merge 1 commit intomasterfrom
references_rake_task

Conversation

@tuxmea
Copy link
Copy Markdown
Contributor

@tuxmea tuxmea commented Apr 7, 2026

fixes: #41

Checklist

I have:

  • read the CONTRIBUTING.md document
  • read and accepted the Developer Certificate of Origin document and added a Signed-off-by annotation to each of my commits
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

fixes: #41

Signed-off-by: Martin Alfke <ma@betadots.de>
@tuxmea tuxmea requested a review from a team as a code owner April 7, 2026 21:23
Comment thread lib/puppet_references.rb
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")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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.

[Feature request]: Provide a rake task for references deployment

2 participants