puppetlabs / puppet-strings

The next generation Puppet documentation extraction and presentation tool.
http://puppetlabs.github.io/puppet-strings/
Apache License 2.0
90 stars 84 forks source link

(GH-332) Ensure PuppetStrings is loaded for tasks #333

Closed chelnak closed 2 years ago

chelnak commented 2 years ago

Prior to this PR users would receive an Undefined Constant error when attempting to generate a reference file via the provided Rake tasks.

This was caused by the compact testing style for modules added in v3.0.

In this case the parent, PuppetStrings is not properly loaded before Tasks. As a result the error above is caused.

This PR adds a new module declaration to tasks.rb that will ensure that the PuppetStrings is properly loaded.