This seems to use the same Puppet::Module.find function that yours did - 
the only difference I can see is that he gets the environment using 

 compiler.environment.to_s

instead of 
Puppet[:environment]

 - is that the improved generic part you're referring to?

On Thursday, August 9, 2012 9:50:50 PM UTC+1, Nan Liu wrote:
>
> On Thu, Aug 9, 2012 at 1:45 PM, j4m3s <mrfe...@gmail.com <javascript:>> 
> wrote: 
> > I only just noticed this, but I was actually modifying your gist KW to 
> add 
> > the puppet:/// parsing.  I've forked it but can't see how to create a 
> > pull-request for it (I'm fairly new to gihub I'm afraid). 
> > 
> > Anyway, for anyone else wanting the function I've posted it here: 
> > https://gist.github.com/3307835. 
> > 
> > The next limitation is that it doesn't resolve template paths.  That 
> should 
> > probably be in a separate function anyway. 
>
> I just notice Dan contributed something very similar that's much more 
> generic to stdlib: 
>
>
> https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/parser/functions/get_module_path.rb
>  
>
> Thanks, 
>
> Nan 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/YAQ0hOk7I40J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to