- From: Lamont Granquist <
>
- To:
- Subject: [chef] Re: Re: Re: LWRP to extend a Chef resource?
- Date: Tue, 29 Oct 2013 15:25:49 -0700
Also with the HWRP if you subclass a chef resource and go mucking
in its internals, you may find yourself rudely busted in a minor
release version of Chef. Most HWRP code that I've seen reuses
internal code in ways that make it almost certain that the HWRP
will be brittle to changing chef releases. When using LWRPs
you're reusing existing resources via their public APIs and we try
our best to keep that stable.
On 10/29/13 11:33 AM, Mike wrote:
"
type="cite">
Thanks Daniel for the code snippet - that's pretty
much the thing I was looking for,a s well as the knowledge that
it wasn't currently possible.
Ended up looking like this:
action :install do
version new_resource.version
action :install
end
end
Thanks to Ranjib for pointing out the HWRP method, but I
was trying to keep away from that just yet for this particular
concept.
-M
|
Archive powered by MHonArc 2.6.16.