Trevor Vaughan wrote:
> Negatory.
> 
> I tried several variations, including adding a
> /.../puppet/modules/lib/puppet/util directory but that didn't work at
> all.
> 
> Of course, I could have just been doing it wrong :-/
> 
> I seem to remember this working in old versions but I'm not quite sure.

I just add a .rb file with my util code in the
/lib/puppet/provider/newprovider/ directory and then include that code
in my provider.

Module Foo
  Module Bar

  end

  Module Baz

  end
end

include Foo::Bar

Puppet autoloads any .rb files in the directory.

James


-- 
James Turnbull
Puppet Labs
1-503-734-8571
To schedule a meeting with me: http://tungle.me/jamtur01

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to puppet-dev@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to