No commit activity in last 3 years
No release in over 3 years
Itamae plugin to install node with nodenv
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.16
~> 10.0
 Project Readme

Itamae::Plugin::Recipe::Nodenv

itamae plugin to install node with nodenv

Installation

Add this line to your application's Gemfile:

gem 'itamae-plugin-recipe-nodenv'

And then execute:

$ bundle

Or install it yourself as:

$ gem install itamae-plugin-recipe-nodenv

Usage

System wide installation

Install nodenv into /usr/local/nodenv

Recipe

include_recipe "nodenv::system"

Configuration

Write a yaml file:

# node.yml
nodenv:
  global:
    10.15.0
  versions:
    - 11.6.0
    - 10.15.0

  # used in git clone (default: git)
  scheme: https

  # nodenv root dir (default: /usr/local/nodenv)
  nodenv_root: /path/to/nodenv_root

and execute:

$ itamae -y node.yml

User local installation

Recipe

include_recipe "nodenv::user"

Configuration

Write a yaml file:

# node.yml
nodenv:
  user: masawada
  global:
    10.15.0
  versions:
    - 11.6.0
    - 10.15.0

  # used in git clone (default: git)
  scheme: https

  # nodenv root dir (default: $HOME/.nodenv)
  nodenv_root: /path/to/nodenv_root

and execute:

$ itamae -y node.yml

mitamae support

It can be used as mitamae plugin.

Put this repository under ./plugins as a git submodule:

$ git submodule add https://github.com/masawada/itamae-plugin-recipe-nodenv.git plugins/itamae-plugin-recipe-nodenv

and write a recipe:

node.reverse_merge!(
  nodenv: {
    user: 'masawada',
    global: '10.15.0',
    versions: %w[
      11.6.0
      10.15.0
    ],
  },
)

include_recipe "nodenv::user"

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/masawada/itamae-plugin-recipe-nodenv.

License

The gem is available as open source under the terms of the MIT License.