On Fri, Sep 14, 2012 at 4:48 PM, Mitchell Hashimoto <
[email protected]> wrote:

> Hi,
>
> I'd like to DRY up some of my Puppet lib code and wanted to put helper
> classes in other parts of the "lib/" folder in my plugin.
>

There are a couple of issues that prevent require from simply working, but
all of them have fairly clean work arounds that are forward-compatible,
meaning as soon as we fix them you won't need to change your code.

I did a slight refactor of our registry module to employ these work
arounds.  Hopefully the change provides a sound example to work from:

https://github.com/puppetlabs/puppetlabs-registry/pull/18/files#L1R2

The issues to work around are #4248, #7788 (Fixed in 3.0.0), and #14149.

-Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to