Itamae::Plugin::Recipe::Rbenv

Itamae plugin to install ruby with rbenv

Installation

Add this line to your application’s Gemfile:

“by gem ‘itamae-plugin-recipe-rbenv’

And then execute:

$ bundle

Or install it yourself as:

$ gem install itamae-plugin-recipe-rbenv

Usage

System wide installation

Install rbenv to /usr/local/rbenv or some shared path

Recipe

“by

your recipe

include_recipe “rbenv::system”

Node

Use this with itamae -y node.yml

“ml

node.yml

rbenv: global: 2.2.0 versions: - 2.2.0 - 2.1.5

# rbenv install dir, optional (default: /usr/local/rbenv) rbenv_root: “/path/to/rbenv”

# specify scheme to use in git clone (default: git) scheme: https

revision of rbenv/ruby-build, optional

ruby-build: revision: e455975286e44393b1b33037ae1ce40ef2742401

rbenv-default-gems: default-gems: - bundler - bcat ~>0.6 - rails –pre # revision of rbenv/rbenv-default-gems, optional revision: ead67889c91c53ad967f85f5a89d986fdb98f6fb

Specify :install or :revision to install rbenv-gem-rehash

rbenv-gem-rehash: install: true # or revision: 4d7b92de4bdf549df59c3c8feb1890116d2ea985

.bashrc

Recommend to append this to .bashrc in your server.

“sh export RBENV_ROOT=/usr/local/rbenv export PATH=“$RBENV_ROOT/bin:$PATH” eval “$(rbenv init -)”

Installation for a user

Install rbenv to ~#{node[:rbenv][:user]}/.rbenv

Recipe

“by

your recipe

include_recipe “rbenv::user”

Node

Use this with itamae -y node.yml

“ml

node.yml

rbenv: user: k0kubun global: 2.2.0 versions: - 2.2.0 - 2.1.5

License

MIT License