cookbook 'asdf', '= 0.1.0'
asdf (15) Versions 0.1.0 Follow0
Installs and configures asdf
cookbook 'asdf', '= 0.1.0', :supermarket
knife supermarket install asdf
knife supermarket download asdf
Chef asdf cookbook
Manages asdf extendable version manager.
Requirements
Chef
This cookbook requires Chef 12.9+.
Platforms
- Ubuntu 14.04
- Ubuntu 16.04
Dependencies
- apt
Usage
Place a dependency on the asdf cookbook in your cookbook's metadata.rb
depends 'asdf'
Examples are provided in test/cookbooks/test/recipes
.
A asdf_user_install
is required so that asdf is installed. See Resources
below.
Testing
For more details look at the [TESTING.md](./TESTING.md).
Resources
asdf_user_install
Installs asdf to the user path, making asdf only available to that user.
asdf_user_install 'user' do git_url # Optional git_ref # Optional update_asdf # Optional legacy_version_file # Optional end
Actions
This resource has the following actions:
-
:install
Default. Install asdf.
Properties
This resource has the following properties:
-
git_url
The git url to checkout asdf from. Defaults to https://github.com/asdf-vm/asdf.git. -
git_ref
The git reference to checkout. Defaults to v0.4.0. -
update_asdf
Whether or not to keep the git repo up to date. Defaults to true. -
legacy_version_file
Whether or not to use legacy version files, i.e. .ruby-version. Defaults to false.
asdf_plugin
Installs, updates or removes an asdf plugin.
asdf_plugin 'plugin' do user # Required git_url # Optional live_stream # Optional end
Actions
This resource has the following actions:
-
:add
Default. Add plugin. -
:update
Update plugin. -
:remove
Remove plugin.
Properties
-
user
The user to run asdf as. -
git_url
The git url to checkout plugin from. Defaults to the asdf plugin repo. -
live_stream
Whether or not to output verbose stream. Defaults to false.
asdf_package
Installs, uninstalls and sets global an asdf package.
asdf_package 'package' do user # Required version # Required live_stream # Optional end
Actions
This resource has the following actions:
-
:install
Default. Install package. -
:global
Set package global. -
:uninsstall
Uninstall package.
Properties
-
user
The user to run asdf as. -
version
The package version. -
live_stream
Whether or not to output verbose stream. Defaults to false.
asdf_script
Runs an asdf aware script.
asdf_script 'foo' do user # Required code # Required path # Optional environment # Optional returns # Optional live_stream # Optional end
Actions
This resource has the following actions:
-
:run
Default. Run a script.
Properties
-
user
The user to run asdf as. -
code
The script code to run. -
path
Additional path to include in environment path. -
environment
Environment variables to run script. Defaults to {}. -
returns
Expected return code. Defaults to 0. -
live_stream
Whether or not to output verbose stream. Defaults to false.
Credit
This cookbook is based off of the ruby_rbenv cookbook.
Authors
- Author:: Fernando Aleman fernandoaleman@mac.com
Copyright:: Fernando Aleman
Dependent cookbooks
apt >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Change Log
v0.1.0 (2017-10-19)
-
117e555683
- Create asdf_package resource (Fernando Aleman) -
b0a6144acb
- Create asdf_plugin resource (Fernando Aleman) -
a49799c253
- Create asdf_script resource (Fernando Aleman) -
71dc5bf619
- Create asdf_user_install resource (Fernando Aleman) -
c765897f31
- Initial commit (Fernando Aleman)
Collaborator Number Metric
0.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.0 passed this metric
License Metric
0.1.0 passed this metric
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 passed this metric
Version Tag Metric
0.1.0 passed this metric
0.1.0 failed this metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.0 passed this metric
License Metric
0.1.0 passed this metric
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 passed this metric
Version Tag Metric
0.1.0 passed this metric
0.1.0 passed this metric
0.1.0 passed this metric
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 passed this metric
Version Tag Metric
0.1.0 passed this metric
0.1.0 passed this metric
0.1.0 passed this metric
Version Tag Metric
0.1.0 passed this metric
0.1.0 passed this metric