Skip to content

Support Cookbook Uploads #250

Open
@wheatevo

Description

@wheatevo

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
  • Upload each cookbook file into the sandbox that has needs_upload set to true in the chef.Sandbox Post JSON response by performing a PUT to the provided sandbox item url.
  • Commit the sandbox.
    • Use chef.Sandbox Put
  • Upload the cookbook version manifest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions