Hi,
Disclosure:I am new to Chef
I am creating a LWRP by extending 'Websphere Cookbook'.
All my resources extend Base Class and the base class has a property called 'bin_dir'. Is there a way to inherit this property? Currently, in my recipes that call the LWRP, I am setting this property. Please note that this is a common property for all resources & recipes. Anyways to avoid setting it in all my recipes?
I found the following answer to a question LWRP to extends another cookbook
"There is one exception to this pattern - default. "Default" is special in Chef land, as it doesn't get prefixed. So if you have a cookbook named bacon and an LWRP in bacon/resources/default.rb, the associated LWRP is bacon (not bacon_default). The associated class is the camel-cased, constantized version of that - Chef::Resource::Bacon and Chef::Provider::Bacon (not "BaconDefault") in this case.
"
does that apply to property as well, as it is 'defaulted' in the base class?
I also gather from this post that it is not recommended to use lazy init
Thanks