I'm trying to create a function that I can call in a manifest like this:

  $doc = doc('apache::service')

In the function, I want it to actually find the filename for the 
'apache::service' class... from there, I'm going to run some code that will 
generate the puppet-doc in text format, and then return it in a variable. 
Ultimately this is so that I can have nodes self-document themselves.

Right now I'm stuck on figuring out the filename from the classname though. 
Anyone have any tips on this? Is there a function in the Puppet ruby code 
somewhere that will translate a class-name into a file path?

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


Reply via email to