/itamae-plugin-recipe-rbenv

Itamae plugin to install ruby with rbenv

Primary LanguageRubyMIT LicenseMIT

Itamae::Plugin::Recipe::Rbenv

Itamae plugin to install ruby with rbenv

Installation

Add this line to your application's Gemfile:

gem 'itamae-plugin-recipe-rbenv'

And then execute:

$ bundle

Or install it yourself as:

$ gem install itamae-plugin-recipe-rbenv

Usage

System wide rbenv installation

Recipe

# your recipe
include_recipe "rbenv::system"

Node

Use this with itamae -y node.yml

# node.yml
rbenv:
  global:
    2.2.0
  versions:
    - 2.2.0
    - 2.1.5

  # rbenv install dir, optional (default: /use/local/rbenv )
  rbenv_root: "/path/to/rbenv"

# revision of sstephenson/ruby-build, optional
ruby-build:
  revision: e455975286e44393b1b33037ae1ce40ef2742401

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

.bashrc

Recommend to append this to .bashrc in your server.

export RBENV_ROOT=/usr/local/rbenv
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"

License

MIT License