i am managing my cookbooks with berkshelf. i would like to play a little bit with the cookbook dependency graph. for instance:
- given a cookbook, get its dependencies (the same as the resolver does it)
- given a cookbook, get depended cookbooks (same as
berks contingent
)
i tried
require 'berkshelf'
Berkshelf::Lockfile.new(file_path: './Berksfile.lock')
but it did not work.
how can berkshelf be invoked programmatically under ruby and achieve the above?