Correct, it's an organization limitation. While I understand it's on purpose, I still think its arbitrary - they are not really cookbooks, etc. You are right about the java cookbook being poorly structured. And this is a recurring issue that I have with supermarket cookbooks. My guess is this is because the bar the DSL offers is so low. I agree that monkey-patching is generally undesirable. Cheers, Jos -------- Original Message -------- From: Tensibai < > Date: Fri, Sep 18, 2015, 1:07 AM To: Subject: [chef] Re: Re: Re: Re: Re: Object-Oriented Chef Sorry, I misunderstood what you mean in this case (and still don't see exactly the use case for it, just organizing recipes ?) Regarding your use case with two java version I assume the way to go would be to move the recipe into a LWRP and call the LWRP with corresponding attributes twice in a wrapper cookbook. (You may even do a PR for this) This sounds less likely to break in future than monkey patching the DSL in my opinion.
|
Archive powered by MHonArc 2.6.16.