chef - Berks install not including ruby snippet -


this berksfile:

source 'https://supermarket.chef.io'  dir[file.expand_path('../cookbooks', __file__)].each |path|   cookbook(file.basename(path), path: path) end  metadata 

i should able https://www.sethvargo.com/berksfile-magic/ berks ignores code snippet , see no output berks tries run it, says "unable find solution demands:"

if include them works:

cookbook 'mycookbook', path: '../mycookbook' 

you meant dir[file.expand_path('../cookbooks/*', __file__)] can more if using chefdk 2.x (i.e. recent-ish berkshelf) so:

source 'https://supermarket.chef.io/' source chef_repo: '..'  metadata 

Comments