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-1488) Inform user if updating a pinned module #816

Merged
merged 1 commit into from
Dec 11, 2019

Conversation

rodjek
Copy link
Contributor

@rodjek rodjek commented Dec 11, 2019

No description provided.

@rodjek rodjek added this to the December 2019 milestone Dec 11, 2019
@rodjek rodjek requested review from scotje and glennsarti December 11, 2019 05:11
@rodjek rodjek requested a review from a team as a code owner December 11, 2019 05:11
@@ -48,6 +48,18 @@ module PDK::CLI

updater = PDK::Module::Update.new(opts)

if updater.pinned_to_puppetlabs_template_tag?
PDK.logger.info _(
Copy link
Contributor

Choose a reason for hiding this comment

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

Potentially (not right now) the default template could be pointed to a different location via the PDK config. Should this instead be about the default template URI instead of the puppetlabs template URI?

@coveralls
Copy link

coveralls commented Dec 11, 2019

Coverage Status

Coverage increased (+0.02%) to 91.432% when pulling 15a3441 on rodjek:pdk-1488 into bd5e6ce on puppetlabs:master.

@@ -7,6 +7,7 @@ class TemplateURI

PACKAGED_TEMPLATE_KEYWORD = 'pdk-default'.freeze
DEPRECATED_TEMPLATE_URL = 'https://github.com/puppetlabs/pdk-module-template'.freeze
PDK_TEMPLATE_URL = 'https://github.com/puppetlabs/pdk-templates'.freeze
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a semi-duplicate of

Addressable::URI.new(scheme: 'https', host: 'github.com', path: '/puppetlabs/pdk-templates')
?

Copy link
Contributor

Choose a reason for hiding this comment

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

if it is can we just Addressable::URI.new(PDK_TEMPLATE_URL) instead?

Copy link
Contributor

@glennsarti glennsarti left a comment

Choose a reason for hiding this comment

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

Pending Green CI

@rodjek rodjek merged commit ac5bc75 into puppetlabs:master Dec 11, 2019
@rodjek rodjek deleted the pdk-1488 branch December 11, 2019 07:25
@rodjek rodjek added the feature label Dec 13, 2019
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