i cant think of a straight forward way to do it in lwrp. may be you can have the parent resource as an instance variable (inside the provider) and then use def delegator to pass on the methods etc. you can do the standard sub classing with hwrp easily. All the service providers are derived from a base service resorce/provider, same for pacakges. you can check their code for example
On Tue, Oct 29, 2013 at 8:10 AM, Mike < " target="_blank"> > wrote:
I've been looking in to how I might go about writing something to subclass an existing Chef resource, that already extends another Chef resource.Case: the easy_install_package resource subclasses the package resource, and adds semantics and behavior specific to easy_install.I want to further subclass this resource and add some defaults, so that whenever I call mikes_easy_install_package (name is WIP) I get the directives/options I've declared.Is there a decent example of this anywhere, and my Google-fu is simply failing me today?Thanks,-Mike
Archive powered by MHonArc 2.6.16.