Rich,

The PIP package provider
(https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/pip.rb#L26)
has decent comments about what is expected.

If you are working with a new package manager, then self.instances
will return a array of hashes. Each element in the array describing a
single package. Query provides the information for the single package
identified by @resource[:name].

I believe the test that the current msi package uses is if a state
file exists. I believe one could also query the registry, but my
windows-fu is waning.

Best of luck,

Jeff Weiss
Software Developer
Puppet Labs, Inc.
[email protected]

Sent from my iPhone

On May 19, 2012, at 12:49 PM, Rich Siegel <[email protected]> wrote:

> I am trying to build something around a completely new package manager
> for windows (not msi).  Specifically I am trying to find out the goal
> of what def_query is within a puppet provider package ?  Is this a
> list of all packages installed?  Just a determination for 1 specific
> resource package?   I have looked at some examples in here :
> https://github.com/puppetlabs/puppet/tree/master/lib/puppet/provider/package,
> and it is hard to determine what puppet is expecting.
>
> I had a look here, and it doesn't describe self.instances or def_query
> role in the package provider sense.
> http://projects.puppetlabs.com/projects/1/wiki/Development_Provider_Development
>
> --
> 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.
>

-- 
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