A puppet-lint plugin to check that anchor resources are unused.
$ gem install puppet-lint-anchor-checkgem 'puppet-lint-anchor-check', :require => falseThe anchor pattern should be replaced with the contain function.
anchor { 'foo::begin': }
-> class { 'foo::install': }
-> class { 'foo::config': }
~> class { 'foo::service': }
-> anchor { 'foo::end': }contain 'foo::install'
contain 'foo::config'
contain 'foo::service'
Class['foo::install']
-> Class['foo::config']
~> Class['foo::service']Copyright 2017 Alexander Fisher
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
To make a new release, please do:
- update the version in the gemspec file
- Install gems with
bundle install --with release --path .vendor - generate the changelog with
bundle exec rake changelog - Check if the new version matches the closed issues/PRs in the changelog
- Create a PR with it
- After it got merged, push a tag. GitHub actions will do the actual release to rubygems and GitHub Packages