On May 4, 2012, at 9:58 AM, Philip Brown wrote:

> I'm looking at the "user" providers.
> They all seem to have this function  "addcmd" defined.
> 
> The manual on providers and types seems to say that all provider entrypoints 
> are defined in the "type" file.
> 
> However, nowhere in type/user.rb file, is "addcmd" mentioned.
> Where is this defined?
> 
> Sounds like an interesting mechanism that I could possibly make use of in 
> other provider types

Unfortunately the 'user', 'group', and 'service' providers are considerably 
more complicated than they need to be, and in fact we have a Google Summer of 
Code project to try to fix some of that.

In many cases, and I think in this case particularly, those methods are added 
by a parent class, rather than being entry points for the type.  The entry 
points from the type are almost always limited to these:

getters and setters (e.g., uid and uid=)
ensure triggers (e.g., create, destroy)

Everything else is unlikely to be used by the type, but there are things like 
'commands' and 'features' that are used by the provider management system.

-- 
Luke Kanies | http://about.me/lak | http://puppetlabs.com/ | +1-615-594-8199

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev?hl=en.

Reply via email to