Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Created September 3, 2013 21:23
Show Gist options
  • Save jtimberman/6429808 to your computer and use it in GitHub Desktop.
Save jtimberman/6429808 to your computer and use it in GitHub Desktop.
walk through all the cookbooks in the cookbooks directory and add a berksfile entry for each one at the path location. doesn't work so well on large repos.
Dir.glob(File.join(File.dirname(__FILE__), "cookbooks", "*")).each do |cb|
cookbook File.basename(cb), :path => cb
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment