Including a resource from another coookbook in custom resource


I am trying to create a custom resource in Cookbook A, in which, I want to call the resource from Cookbook B and use it in an action. I tried below methods

include_recipe is not working
included cookbook B in the metatdata of cookbook A, but can't call the resource in the custom resource of cookbook A.

Is there a working example I can refer to ?



it wasn't the resource error, Fixed it. Closing the issue