-
-
Save fujin/073efbf81ef64b1de024 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Relative path because berkshelf is dumb? | |
current_dir = File.dirname(__FILE__) | |
metadata_glob = ::File.join(current_dir, 'site-cookbooks', '*', 'metadata.rb') | |
Pathname.glob(metadata_glob).sort.each do |metadata_path| | |
cookbook metadata_path.dirname.basename.to_s, # e.g. foo | |
path: metadata_path.dirname.to_s # e.g. ./site-cookbooks/foo | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment