Ruby

March 19, 2026 ยท View on GitHub

Installs a given Ruby version to the system or user location.

Properties

NameTypeDefaultDescription
versionStringRuby version to install.
environmentHashEnvironment to pass to the Ruby script.
rbenv_actionStringinstallAction to pass to rbenv.
verbosetrue, falsefalseBuild Ruby with verbose output.
ruby_build_git_urlStringhttps://github.com/rbenv/ruby-build.gitGit URL for Ruby build.
userStringUsername to run the script as.
root_pathStringSee root_path helperPath to install Ruby to.

Examples

rbenv_ruby '3.4.9' do
  user 'vagrant'
end
rbenv_ruby '3.4.9'