Git Product home page Git Product logo

nodenv-cookbook's Introduction

Chef cookbook Travis

Nodenv Cookbook

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

Cookbook

cookbook 'nodenv', '~> 1.0.3'

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
:git_revision String HEAD choose a revision
:git_url String git://github.com/nodenv/nodenv.git a valid git url
:nodenv_root String :user's home a directory that must be writable by :user
:owner String must be and existing user, acts as name property
:group String must be and existing group.
:user String Deprecated, use :owner property

System-wide

nodenv_system 'system'
Property Type Default Details
:git_revision String HEAD choose a revision
:git_url String git://github.com/nodenv/nodenv.git a valid git url
:nodenv_root String /usr/local/nodenv

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.

nodenv-cookbook's People

Contributors

afaundez avatar damacus avatar hp41 avatar limitusus avatar wittro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.