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

(PDK-1363) Apply init templates during module convert #729

Merged
merged 3 commits into from
Aug 14, 2019

Conversation

rodjek
Copy link
Contributor

@rodjek rodjek commented Aug 12, 2019

During pdk convert, if there are init-only templates for files that do not exist in the module, create them as would be done during pdk new module.

Coverage dropped a bit because there isn't much in the way of unit tests for PDK::Module::TemplateDir currently and I don't want this change to get bogged down working on that.

@rodjek rodjek added the WIP label Aug 12, 2019
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 92.015% when pulling 85094fe on rodjek:pdk-1363 into 520eee4 on puppetlabs:master.

@rodjek rodjek force-pushed the pdk-1363 branch 2 times, most recently from 7cae8c6 to 42c7d7d Compare August 14, 2019 03:12
Copy link
Contributor

@scotje scotje left a comment

Choose a reason for hiding this comment

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

All looks good to me!

@@ -68,25 +72,30 @@ def needs_bundle_update?
def stage_changes!
metadata_path = 'metadata.json'

PDK::Module::TemplateDir.new(template_uri, nil, false) do |templates|
PDK::Module::TemplateDir.new(template_uri, nil, true) do |templates|
Copy link
Contributor

Choose a reason for hiding this comment

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

The PDK::Module::TemplateDir constructor seems like a good candidate for keyword arguments. Not necessarily now though.

@scotje scotje added this to the August 2019 milestone Aug 14, 2019
@scotje scotje added the feature label Aug 14, 2019
@rodjek rodjek merged commit 382bd59 into puppetlabs:master Aug 14, 2019
@rodjek rodjek deleted the pdk-1363 branch August 14, 2019 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants