Issue #1484 has been updated by Sonny Cook.
So, if I understand you correctly, externally, the object we want interfacing with the world is Puppet::Resource (hopefully I'm just restating what you said). Internally, the thing we need to look at are instances of Puppet::Type since those describes the RAL resources that we are interested in. We need to locate the correct one(s) based on the URLs passed in, operate on them if appropriate, and then convert to Puppet::Resource to complete the request. The 'ral' terminus will need to know how to handle all of this. As I understand it, Puppet::Resource -> Puppet::Type conversion is currently a one way street, so the significant work here will probably be implementing the Puppet::Type -> Puppet::Resource conversion. Does that sound about right? ---------------------------------------- Refactor #1484: The 'resource' handler needs to be refactored to use the Indirector and REST http://projects.reductivelabs.com/issues/1484 Author: Luke Kanies Status: Accepted Priority: High Assigned to: Sonny Cook Category: plumbing Target version: Rowlf Affected version: 0.24.7 Branch: Currently, there's an xmlrpc Resource handler that can provide information on resources and modify them. This class needs to be refactored entirely to use the Indirector instead of being tied to XMLRPC. Most likely, the bits that talk to the RAL need to moved to a terminus type, and then we need a new Resource class that provides a simple model for resources. Hopefully, this class can be a model for how to integrate all of the different Resource models we have. Once the class exists, it needs to be able to use REST for communication. Backward compatibility isn't important here, because we'll just keep the xmlrpc handler around. I think the only code that uses this class is the 'ralsh' executable. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
