You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In rvm cookbook, Chef::Provider::Package::RVMRubygems resource is defined with a library and some method in that class instantiates a resource that was defined as a LWRP (rvm_environment) in the same cookbook. This code used to work until 11.16.4-1, when you switch to Chef 12.0.0 it breaks.
If you instantiate the problematic resource with its full class name, then you can work around this issue but I don't know if this is the correct solution.
I'm aware Chef 12.0.0 deprecated some old things and switched some defaults but I'm not sure about this change that I'm describing.
Can somebody provide some insight on this?
Thanks,
The text was updated successfully, but these errors were encountered:
Known deprecated functionality. You can either inherit from Chef::Provider::LWRPBase instead of Chef::Provider in order to mixin the recipe DSL into your provider or do the workaround in https://github.com/fnichol/chef-rvm/pull/284/files -- the latter is 'better' in that it avoids mixing the method_missing magic back in and we avoided that for a reason, but the former is a much easier patch.
Hi folks,
I don't know if this a bug or if I just missed some change from Chef 12.0.0 changelog.
When you upgrade from Chef 11.16.4-1 to Chef 12.0.0 rvm community cookbook (0.9.2) stops working in some cases. The exact issue is: sous-chefs/rvm#283.
In rvm cookbook,
Chef::Provider::Package::RVMRubygems
resource is defined with a library and some method in that class instantiates a resource that was defined as a LWRP (rvm_environment
) in the same cookbook. This code used to work until 11.16.4-1, when you switch to Chef 12.0.0 it breaks.If you instantiate the problematic resource with its full class name, then you can work around this issue but I don't know if this is the correct solution.
I'm aware Chef 12.0.0 deprecated some old things and switched some defaults but I'm not sure about this change that I'm describing.
Can somebody provide some insight on this?
Thanks,
The text was updated successfully, but these errors were encountered: