Skip to content

Commit 0c860b4

Browse files
committed
(GH-332) Ensure PuppetStrings is loaded for tasks
Prior to this commit users would recieve 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 commit adds a new module declaration to tasks.rb that will ensure that the PuppetStrings is properly loaded.
1 parent deaee1f commit 0c860b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/puppet-strings/tasks.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
require 'rake'
44
require 'rake/tasklib'
55

6+
# Ensure PuppetStrings is loaded.
7+
module PuppetStrings end
8+
69
# The module for Puppet Strings rake tasks.
710
module PuppetStrings::Tasks
811
require 'puppet-strings/tasks/generate.rb'

0 commit comments

Comments
 (0)