cookbook 'nodenv', '= 1.0.0'
nodenv (10) Versions 1.0.0 Follow0
Installs/Configures nodenv
cookbook 'nodenv', '= 1.0.0', :supermarket
knife supermarket install nodenv
knife supermarket download nodenv
Nodenv Cookbook
Chef resource for nodenv installs, configuration and management of node versions.
Cookbook
cookbook 'nodenv', '~> 1.0.0'
Resources
You can choose whether a user or a system install (or both). Check test recipes for working examples.
Install
User
nodenv_user 'user'
|Property|Type|Default|Details|
|-|-|-|
|:user
|String||must be and existing user|
|:nodenv_root
|String|:user
's home|A directory that must be writable by :user
|
|:git_url
|String|https://github.com/nodenv/nodenv.git|a valid git url|
|:git_revision
|String|master|choose a branch|
System-wide
nodenv_system 'system'
|Property|Type|Default|Details|
|-|-|-|
|:nodenv_root
|String|/usr/local/nodenv
||
|:git_url
|String|https://github.com/nodenv/nodenv.git|a valid git url|
|:git_revision
|String|master|choose a branch|
Commands
Commands without user
property will assume system-wide installation.
Install
Install a node version for user/system nodenv.
nodenv_install '8.2.1' do user 'user' end nodenv_install '9.5.0'
|Property|Type|Default|Details|
|-|-|-|
|:version
|String||must be a valid node version, acts as name property|
|:user
|String|root
|must be an existing user|
Global
Set a global node version for user/system-wide nodenv.
nodenv_global '8.2.1' do user 'user' end nodenv_global '9.5.0'
|Property|Type|Default|Details|
|-|-|-|
|:version
|String||must be installed node versions, acts as name property|
|:user
|String|root
|must be an existing user|
Testing
Check [TESTING.md](TESTING.md)
Development
Check kitchen converge docs.
Acknowledgements
Based in ruby_rbenv.
Dependent cookbooks
git ~> 8.0.0 |
node_build ~> 1.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog
and this project adheres to Semantic Versioning.
[unreleased]
Added
- System install, reusing user install ### Updated
- Update readme
[0.1.5] - 2018-02-2
Added
- Nodenv Install resource
- Development at readme ### Removed
- Remove testing doc ### Updated
- Add testing to readme
- Install git with cookbook
[0.1.4] - 2018-01-25
Updated
- Update nodenv init runs only if nodenv is installed
[0.1.3] - 2018-01-25
Added
- Add a test cookbook with inspec tests
- Add root_path helper as we keep trying to find the root path for commands
- Add inspec tests for global version setting ### Fixed
- Fix template to look at the nodenv cookbook rather than the wrapper cookbook (default)
- Fix typo in command resource ### Updated
- Grab the rbenv_script and make a nodenv_command resource so we can get the global version easily. ### Removed
- Remove Vagrantfile we no longer require
- Remove default delivery and add the community cookbook toml
- Remove git_url we're no longer using
- Remove default attributes.
- Remove the default recipe as we're a library cookbook and we now have a test cookbook
- Remove user_home as it's no longer used
[0.1.2] - 2017-08-06
Added
- Add testing guide
- Add contributing guide
- Add code of conduct ### Remove
- Remove centos from automated testing
[0.1.1] - 2017-08-06
Added
- Add user install
Collaborator Number Metric
1.0.0 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.0 passed this metric
Foodcritic Metric
1.0.0 failed this metric
FC118: Resource property setting name_attribute vs. name_property: nodenv/resources/user.rb:1
Run with Foodcritic Version 13.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
1.0.0 passed this metric
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 passed this metric
Version Tag Metric
1.0.0 passed this metric
1.0.0 failed this metric
1.0.0 passed this metric
Foodcritic Metric
1.0.0 failed this metric
FC118: Resource property setting name_attribute vs. name_property: nodenv/resources/user.rb:1
Run with Foodcritic Version 13.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
1.0.0 passed this metric
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 passed this metric
Version Tag Metric
1.0.0 passed this metric
1.0.0 failed this metric
Run with Foodcritic Version 13.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.0 passed this metric
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 passed this metric
Version Tag Metric
1.0.0 passed this metric
1.0.0 passed this metric
1.0.0 passed this metric
Version Tag Metric
1.0.0 passed this metric
1.0.0 passed this metric