Itamae plugin to install ruby with rbenv
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
System wide rbenv installation
# your recipe
include_recipe "rbenv::system"
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: /usr/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
Recommend to append this to .bashrc in your server.
export RBENV_ROOT=/usr/local/rbenv
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"
MIT License