Generate the Chef cookbook dependency diagram

The Brew viz command reads the Berksfile.lock in the current Chef cookbook directory and saves the cookbook dependency diagram in the graph.png file.

The command requires the graphviz utility

Install graphviz

In the terminal window execute

brew install graphviz

Generate the cookbook dependency diagram and open it in Preview

In the Chef cookbook directory execute

berks viz;open graph.png

Leave a comment

Leave a Reply