Skip to content

Instantly share code, notes, and snippets.

@philk
Created February 12, 2014 20:55
Show Gist options
  • Save philk/8964314 to your computer and use it in GitHub Desktop.
Save philk/8964314 to your computer and use it in GitHub Desktop.
Dir['site-cookbooks/*/metadata.rb'].each do |metadata_rb|
cb_path = File.dirname(metadata_rb)
cb_name = File.basename(cb_path)
cookbook cb_name, :path => cb_path
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment