cookbook 'asdf', '= 0.4.2'
asdf (15) Versions 0.4.2 Follow0
Installs and configures asdf
cookbook 'asdf', '= 0.4.2', :supermarket
knife supermarket install asdf
knife supermarket download asdf
asdf Cookbook
Installs and configures asdf extendable version manager.
Requirements
- Chef 14.3+
Platforms
The following platforms are supported and tested with Test Kitchen:
- Amazon Linux 2+
- CentOS 7+
- Debian 8+
- Fedora 27+
- Ubuntu 16.04+
Other Debian and RHEL family distributions are assumed to work.
Dependencies
- ark
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_package
Installs, uninstalls and sets global an asdf package.
See Package Dependencies below.
asdf_package 'name' do live_stream [TrueClass, FalseClass] package String user String version String end
Actions
This resource has the following actions:
-
:installDefault :global:uninstall
Properties
This resource has the following properties:
-
live_streamWhether or not to output verbose stream. Defaults tofalse. -
packageWhich package to install. Defaults toname. -
userWhich user to run asdf code as. -
versionWhich package version to install. Required.
asdf_plugin
Installs, updates or removes an asdf plugin.
asdf_plugin 'name' do git_url String live_stream [TrueClass, FalseClass] user String end
Actions
This resource has the following actions:
-
:addDefault :update:remove
Properties
This resource has the following properties:
-
git_urlGit url to checkout plugin from. -
live_streamWhether or not to output verbose stream. Defaults tofalse. -
userWhich user to run asdf code as.
asdf_script
Runs an asdf aware script.
asdf_script 'name' do code String environment Hash live_stream [TrueClass, FalseClass] path String returns Array timeout [Integer, Float] user String end
Actions
This resource has the following actions:
-
:runDefault
Properties
This resource has the following properties:
-
codeasdf command to run. Defaultname. -
environmentEnvironment variables to run script. -
live_streamWhether or not to output verbose stream. Defaults tofalse. -
pathAdditional path to include in environment path. -
returnsExpected return code. Defaults to[0]. -
timeoutAmount of time (in seconds) a command is to wait before timing out. Defaults to3600. -
userWhich user to run asdf code as.
asdf_user_install
Installs asdf to the user path, making asdf only available to that user.
asdf_user_install 'name' do git_url String git_ref String update_asdf [TrueClass, FalseClass] legacy_version_file [TrueClass, FalseClass] end
Actions
This resource has the following actions:
-
:installDefault
Properties
This resource has the following properties:
-
git_refGit reference to checkout. -
git_urlGit url to checkout asdf from. Defaults tohttps://github.com/asdf-vm/asdf.git. -
legacy_version_fileWhether or not to use legacy version files. Defaults tofalse. -
update_asdfWhether or not to update asdf. Defaults totrue. -
userWhich user to install asdf to. Defaults toname.
Package Dependencies
Although this cookbook is slowly but surely trying to make sure that
dependencies are installed for each package on all supported operating systems,
you may still need to add dependencies that have not been pre-installed for a
particular package. If you do indeed get a package installed with dependencies
that have not yet been pre-installed via this cookbook, please open up a pull
request for review to be added.
Credit
This cookbook is based off of the ruby_rbenv cookbook.
Authors
- Author:: Fernando Aleman fernandoaleman@mac.com
Copyright:: Fernando Aleman
Dependent cookbooks
| ark >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.4.2 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.4.2 passed this metric
Foodcritic Metric
0.4.2 passed this metric
No Binaries Metric
0.4.2 passed this metric
Testing File Metric
0.4.2 passed this metric
Version Tag Metric
0.4.2 passed this metric
0.4.2 failed this metric
0.4.2 passed this metric
Foodcritic Metric
0.4.2 passed this metric
No Binaries Metric
0.4.2 passed this metric
Testing File Metric
0.4.2 passed this metric
Version Tag Metric
0.4.2 passed this metric
0.4.2 passed this metric
0.4.2 passed this metric
Testing File Metric
0.4.2 passed this metric
Version Tag Metric
0.4.2 passed this metric
0.4.2 passed this metric
0.4.2 passed this metric