No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/itamae/plugin/recipe
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
itamae-plugin-recipe-nodenv.gemspec
mrblib

README.md

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.