Closed logicminds closed 2 years ago
Merging #76 (4bb63a6) into master (0afea64) will increase coverage by
2.24%
. The diff coverage is96.96%
.:exclamation: Current head 4bb63a6 differs from pull request most recent head b488296. Consider uploading reports for the commit b488296 to get more accurate results
@@ Coverage Diff @@
## master #76 +/- ##
==========================================
+ Coverage 62.89% 65.13% +2.24%
==========================================
Files 12 12
Lines 512 545 +33
==========================================
+ Hits 322 355 +33
Misses 190 190
Impacted Files | Coverage Δ | |
---|---|---|
lib/ra10ke/dependencies.rb | 91.75% <96.15%> (+1.61%) |
:arrow_up: |
lib/ra10ke.rb | 97.67% <100.00%> (+0.05%) |
:arrow_up: |
lib/ra10ke/git_repo.rb | 100.00% <100.00%> (+1.92%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update af46a43...b488296. Read the comment docs.
I need to beef up the tests but was looking for feedback with the output.
This doesn't replace the puppetfile and only provides content to be put into a puppetfile. Which reminds me I need to add some docs around this.
Does the task name look good?
https://forgeapi.puppet.com/#tag/Module-Operations/operation/getModule isn't really helpful :D
I like the idea and left some minor inline comments. based on the task name I'm not sure if I expect some output or a rewritten Puppetfile. Which would you prefer? I think the task name should reflect that (the description already does). Or maybe offer two tasks, one for rewriting, one for printing?
I have a follow up task to this one that replaces the git urls with internal urls and namespaces. I'll think about the task name a bit. Maybe something with the word print in it.
print_git_format?
https://forgeapi.puppet.com/v3/modules/puppet-borg
I think homepage_url
maps to project_page
from metadata.json. Instead of using homepage_url
you should probably use metadata.source
?
print_git_format
I think that's a suitable name :+1:
@bastelfreak I am happy with these changes and my additional test found some edge cases I needed to fix. Ready to merge if you approve.
This feature is useful when you want to bring all the forge modules in house on the local git server. This will auto lookup the module's homepage url and use that as the git source.
Sometimes the author doesn't provide the homepage url so this will fail and the code isn't always tagged to the version so some manual intervention will be required before final approval of conversion output.
Example:
bundle exec rake r10k:print_git_conversion
Converts the following
into