Berksfile Magic

1 · Seth Vargo · Dec. 21, 2013, midnight
The Berksfile is really one of the most magical compontents of Berkshelf - a cookbook dependency manager for Chef. As a core team member, I sometimes take for granted the extensibility of Berkshelf, so I decided to blog about some patterns! Because the Berksfile is evaluated as Ruby, you have the ability to write pure Ruby code that will be evaluated at runtime. Company Cookbooks Just like any standard Ruby class, you can define custom methods using the def keyword in Ruby. Imagine a scenario...