Open
Description
As a user, I would like to be able to upload cookbooks using the go-chef/chef library.
Ruby Chef Cookbook Uploader: https://github.com/chef/chef/blob/main/lib/chef/cookbook_uploader.rb
General Process:
- Parse local cookbook, generating checksums for all cookbook files.
- Create a sandbox with the generated checksums to determine which files will need to be uploaded.
- Use
chef.Sandbox
Post
- Use
- Upload each cookbook file into the sandbox that has
needs_upload
set to true in thechef.Sandbox
Post
JSON response by performing a PUT to the provided sandbox itemurl
. - Commit the sandbox.
- Use
chef.Sandbox
Put
- Use
- Upload the cookbook version manifest.
Metadata
Metadata
Assignees
Labels
No labels