A Library Cookbook for interacting with the Github API
- Ubuntu
Downloads an asset from a Github release
- download - downloads the asset from the Github releaseto disk. (default)
- name - name of the asset to download (name attribute)
- release - name of the release the asset is a part of
- repo - repository the release is a part of (required for private repositories)
- github_token - Github token to perform the download with (required for private repositories)
- owner - owner of the downloaded asset on disk
- group - group of the downloaded asset on disk
- force - force downloading even if the asset already exists on disk
Downloads and extracts a tarball of a specified ref
- download - downloads a tarball into the chef file-cache
- extract - extracts the downloaded tarball and strips the redundant root directory
- name - fully qualified repository name (
org/repo
) - version - git ref/tag/HEAD to fetch. Default
master
- github_user - GitHub user
- github_token - GitHub API token
- host - GitHub:Enterprise endpoint. Default
https://api.github.com
- extract_to - target location for extracted source
- force - override idempotent existance checks
Ensure the HTTPS_PROXY
environment variable is set for the shell executing chef-client
or chef-solo
. The value should be a fully qualified URL containing the host, port, username, and password for your proxy.
Author:: Jamie Winsor (jamie@vialstudios.com)
- John Manero (john_manero@rapid7.com)