Just to confirm want check my understanding with community.
I have read that metadata.rb file tells chef-client when it's running which cookbooks should be downloaded from Chef server to the node.
While Berksfile tells to Berkshelf which dependencies should be downloaded to your local machine to .berkshelf directory from specified sources (internet, local paths, etc).
If it's right should i always specify dependencies in 2 files? Or is there a situations when i can/should specify dependencies only in one of them?