where do these provider entry points get defined?

7 views
Skip to first unread message

Philip Brown

unread,
May 4, 2012, 12:58:29 PM5/4/12
to puppe...@googlegroups.com
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

Luke Kanies

unread,
May 4, 2012, 1:13:50 PM5/4/12
to puppe...@googlegroups.com
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.

Reply all
Reply to author
Forward
0 new messages