On Tue, Sep 18, 2012 at 5:00 PM, Mitchell Hashimoto <
[email protected]> wrote:

> On Tue, Sep 18, 2012 at 1:46 PM, Jeff McCune <[email protected]> wrote:
>
>>
>> In Telly (Puppet 3.0.0), we support plugins distributed as rubygems, so
>> `require "foo/bar"` will work in this scenario, but only if the plugin is
>> inside of a Gem.  In this case, it's not, it's inside of a puppet module.
>>
>>
> Most of my modules are distributed using rsync onto a puppetmaster and not
> via gems. In this case, then, I still need to use __FILE__ and so on right?
> Or does Puppet 3.0.0 add those files to the load path as well?
>

Puppet 3.0.0 does not add the <modulepath>/<modulename>/lib directories to
the load path, so yes, you do need to use the __FILE__ work around with
your rsync scenario.

-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