Skip to content

Instantly share code, notes, and snippets.

@fujin
Created July 21, 2015 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fujin/aae81fdea2b4976b3329 to your computer and use it in GitHub Desktop.
Save fujin/aae81fdea2b4976b3329 to your computer and use it in GitHub Desktop.
Private git / site-cookbooks monolithic Berksfile
# -*- 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