Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Cache community coookbooks #87

Merged
merged 6 commits into from
Jul 3, 2014
Merged

Conversation

danielsdeleo
Copy link
Contributor

Implements library code to fetch all cookbooks specified by a policyfile, cache them to disk, and emit a policyfile lock data structure.

Given a Policyfile like /~https://github.com/opscode/chef-dk/blob/c5d2f6369e3b42022f6c00b1748d8569aa08e368/test-scripts/Policyfile.rb then running a script like /~https://github.com/opscode/chef-dk/blob/c5d2f6369e3b42022f6c00b1748d8569aa08e368/test-scripts/doit.rb installs the cookbooks locally like:

ls -1 ~/.chefdk/cache/cookbooks
7-zip-1.0.2-supermarket.getchef.com
apache2-1.10.4-supermarket.getchef.com
build-essential-2.0.0-supermarket.getchef.com
chef-sugar-2.0.0-supermarket.getchef.com
chef_handler-1.1.6-supermarket.getchef.com
iptables-0.13.2-supermarket.getchef.com
logrotate-1.6.0-supermarket.getchef.com
omnibus-2cf98f9797cacce9c8688fc4e74858b858e2bc14
pacman-1.1.1-supermarket.getchef.com
windows-1.31.0-supermarket.getchef.com
wix-1.1.0-supermarket.getchef.com

@danielsdeleo
Copy link
Contributor Author

cc @opscode/client-eng

end

def source_options_for(cookbook_name, cookbook_version)
base_uri = full_community_graph[cookbook_name][cookbook_version]["location_path"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to chef/supermarket#539, this should be "download_url"

@danielsdeleo danielsdeleo merged commit 962d569 into master Jul 3, 2014
@danielsdeleo danielsdeleo deleted the cache-community-coookbooks branch July 3, 2014 19:43
ksubrama pushed a commit that referenced this pull request Jan 11, 2016
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants