Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

nodenv (10) Versions 1.0.1

Installs/Configures nodenv

Policyfile
Berkshelf
Knife
cookbook 'nodenv', '= 1.0.1', :supermarket
cookbook 'nodenv', '= 1.0.1'
knife supermarket install nodenv
knife supermarket download nodenv
README
Dependencies
Changelog
Quality 83%

Chef cookbook
Travis

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, acts as name property
: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.

[1.0.1] - 2018-05-04

Fixed

  • Property tables at readme
  • Update 1.0.0 changelog
  • Foodcritic warning renaming name_attribute to name_property

[1.0.0] - 2018-02-08

Added

  • System install, reusing user install
  • Testing readme ### Updated
  • Refactoring user install
  • Update readme ### Fixed
  • Travis/kitchen.dokken ### Removed
  • Legacy node install
  • Remove versions property on install
  • Unused code
  • Unnecesary code

[0.1.5] - 2018-02-02

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.1 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.1 passed this metric

Foodcritic Metric
            

1.0.1 passed this metric

No Binaries Metric
            

1.0.1 passed this metric

Testing File Metric
            

1.0.1 passed this metric

Version Tag Metric
            

1.0.1 passed this metric