Sha256: 947fe547c4e75de9fd7180d671d024ecd17dfe83da48e09a67a7c98df2b2c778
Contents?: true
Size: 1.7 KB
Versions: 3
Compression:
Stored size: 1.7 KB
Contents
# Itamae::Plugin::Recipe::Rbenv [Itamae](https://github.com/ryotarai/itamae) plugin to install ruby with rbenv ## Installation Add this line to your application's Gemfile: ```ruby 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 ```ruby # your recipe include_recipe "rbenv::system" ``` ### Node Use this with `itamae -y node.yml` ```yaml # 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. ```bash 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 ```ruby # your recipe include_recipe "rbenv::user" ``` ### Node Use this with `itamae -y node.yml` ```yaml # node.yml rbenv: user: k0kubun global: 2.2.0 versions: - 2.2.0 - 2.1.5 ``` ## License MIT License
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
itamae-plugin-recipe-rbenv-0.5.0 | README.md |
itamae-plugin-recipe-rbenv-0.4.1 | README.md |
itamae-plugin-recipe-rbenv-0.4.0 | README.md |