Should I always be able to access the node object in libraries? Julian Dunn wrote a great post on writing libraries herehttp://www.getchef.com/blog/2014/03/12/writing-libraries-in-chef-cookbooks/, but there’s no reference to a node object.
Unfortunately, I don’t have a specific example, but I know I’ve come across cases where I have to pass the node object from a recipe into a library method because the library didn’t know about the node object itself. I believe the differences come into play when you create a proper library using ruby modules (as in Julian’s post) vs. just adding helper methods with no namespacing.
Cloud Migration - Architecture - DevOps - Big Data - App Dev