Created
July 21, 2015 00:18
-
-
Save fujin/aae81fdea2b4976b3329 to your computer and use it in GitHub Desktop.
Private git / site-cookbooks monolithic Berksfile
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
# -*- mode: ruby -*- | |
@current_dir = File.expand_path(File.dirname(__FILE__)) | |
source 'https://supermarket.chef.io' | |
# source 'https://supermarket.yourorgz.co' | |
def internal_cookbook(name) | |
cookbook(name, git: sprintf('git@github.com:pantheon-cookbooks/%s', name)) | |
end | |
def site_cookbook(name) | |
cookbook(name, path: File.join(@current_dir, 'site-cookbooks', name)) | |
end | |
%w( | |
foo | |
bar | |
baz | |
).each do |cb| | |
internal_cookbook cb | |
end | |
%w( | |
boo | |
yaka | |
sha | |
).each do |cb| | |
site_cookbook cb | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment