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

RSS

nodenv (9) Versions 1.0.2

Installs/Configures nodenv

Berkshelf
Policyfile
Knife
cookbook 'nodenv', '= 1.0.2'
cookbook 'nodenv', '= 1.0.2', :supermarket
knife supermarket install nodenv
knife supermarket download nodenv
README
Dependencies
Quality 63%

Chef cookbook Travis

Nodenv Cookbook

Chef resource for nodenv installs, configuration and management of node versions.

Cookbook

cookbook 'nodenv', '~> 1.0.2'

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 Test Kitchen.

  • dokken: KITCHEN_LOCAL_YAML=kitchen.dokken.yml kitchen test
  • vagrant/virtualbox: kitchen test

Development

Check kitchen converge docs.

Acknowledgements

Based in ruby_rbenv.

Dependent cookbooks

node_build ~> 1.0.1
git ~> 10.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

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

Foodcritic Metric
            

1.0.2 failed this metric

FC066: Ensure chef_version is set in metadata: nodenv/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

1.0.2 passed this metric

Publish Metric
            

1.0.2 passed this metric

Supported Platforms Metric
            

1.0.2 passed this metric

Testing File Metric
            

1.0.2 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 TESTING.md file

Version Tag Metric
            

1.0.2 passed this metric