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

Replace anchors with 'contain' #310

Merged
merged 1 commit into from
Sep 7, 2017
Merged

Replace anchors with 'contain' #310

merged 1 commit into from
Sep 7, 2017

Conversation

wyardley
Copy link
Contributor

@wyardley wyardley commented Sep 7, 2017

replace anchors with contain

include $repo_class
anchor { '::nodejs::begin': }
-> Class[$repo_class]
contain $repo_class
Copy link
Member

Choose a reason for hiding this comment

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

Including it is better. Say a user has Class['::epel'] -> Class['::x'] -> Class['::nodejs'] then trying to ```contain ::epel`` here will lead to issues while it shouldn't be. If the installation is contained and you set the repo class as a dependency then you're set. We don't care where epel is (as long as it's before us) and we don't give a guarantee about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What was the anchor class around it for before then? Is it not needed, even if we switch back to include?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See if the version I just pushed looks better

Copy link
Member

Choose a reason for hiding this comment

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

I think the previous implementation was incorrect and this is the correct one.

@@ -33,10 +33,9 @@
include '::nodejs::install'
Copy link
Member

Choose a reason for hiding this comment

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

I would contain this.

@wyardley wyardley merged commit 7ce2151 into voxpupuli:master Sep 7, 2017
@wyardley wyardley deleted the remove_anchors branch September 9, 2017 23:28
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.

2 participants