Hi,

I'm posting this question here instead of asking Luke privately, since 
I'm sure his answers will be interesting for everybody.

I'm still struggling with the indirector and rest concepts.
I left temporarily(?) the status handler and decided to see if I could 
start working on #1483 as it is a little bit more substantial, and maybe 
I'll have a better understanding of the whole schema.

Here is what I've done:

1) I created a Puppet::Report class whose terminus is :rest.

First question, what class should this one indirect?
My understanding is that the class indirect represents a resource (not 
in puppet parlance, I mean something generic) on which you can 
find/search/save/delete.

I think that it should be :processor so that my report.save will finally 
end up using the reports plugins. Is that right?

2) I then created a Puppet::Indirector::Report::REST which inherits from 
Puppet::Indirector::REST and define save() (which only YAML.dump the 
transaction report and handover to the P::I::REST.save method for 
transfer). Or is YAML.dumping is not necessary?

Am I still on the right track?

3) Then in Transaction.send_report, I just have to create a 
Puppet::Report wrapping the transaction report and call save on it?

I didn't finish this and didn't even run anything, but could that be as 
simple as this?

Or I missed something?

Thanks for the answers,
-- 
Brice Figureau
Days of Wonder
http://www.daysofwonder.com

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to