gem "serverkit-rbenv"
Make sure the specified version of Ruby is installed with rbenv.
- version - Installed Ruby version (required) (e.g.
"2.2.0"
) - global - Pass true to make it global (default:
false
) - rbenv_executable_path - Path to rbenv executable (default: $HOME/.rbenv/bin/rbenv or rbenv)
- user - user name (required if dependencies is true)
- dependencies - Pass true to install rbenv, ruby-build, their dependencies, profile script
- profile_path - Where to append init script for rbenv (required if dependencies is true)
resources:
- type: rbenv_ruby
version: 2.2.0
global: true
rbenv_executable_path: /home/foo/.rbenv/bin/rbenv
user: foo
dependencies: true
profile_path: /home/foo/.bash_profile
Install denpendent packages to install rbenv.
resources:
- type: rbenv_dependent_packages
Append rbenv init lines into profile file.
- profile_path - path to profile file (default: .bash_profile path if user specified)
- user - user name (required)
resources:
- type: rbenv_profile
user: foo
Install rbenv into home directory.
- user - user name (required)
resources:
- type: rbenv_rbenv
user: foo
Install ruby-build into home directory.
- user - user name (required)
resources:
- type: rbenv_ruby_build
user: foo