Manage ruby installations with rbenv.
New in version 0.16.0.
Returns or sets the currently defined default ruby.
CLI Example:
salt '*' rbenv.default
salt '*' rbenv.default 2.0.0-p0
Execute a ruby command with rbenv's shims from the user or the system.
CLI Example:
salt '*' rbenv.do 'gem list bundler'
salt '*' rbenv.do 'gem list bundler' deploy
Execute a ruby command with rbenv's shims using a specific ruby version.
CLI Example:
salt '*' rbenv.do_with_ruby 2.0.0-p0 'gem list bundler'
salt '*' rbenv.do_with_ruby 2.0.0-p0 'gem list bundler' deploy
Install Rbenv systemwide
CLI Example:
salt '*' rbenv.install
Install a ruby implementation.
CLI Example:
salt '*' rbenv.install_ruby 2.0.0-p0
Check if Rbenv is installed.
CLI Example:
salt '*' rbenv.is_installed
List the installable versions of ruby.
CLI Example:
salt '*' rbenv.list
Run rbenv rehash to update the installed shims.
CLI Example:
salt '*' rbenv.rehash
Uninstall a ruby implementation.
CLI Example:
salt '*' rbenv.uninstall_ruby 2.0.0-p0
Updates the current versions of Rbenv and Ruby-Build
CLI Example:
salt '*' rbenv.update
List the installed versions of ruby.
CLI Example:
salt '*' rbenv.versions
Current Salt release: 2014.1.6
Docs for previous releases on salt.rtfd.org.