Skip to content

Instantly share code, notes, and snippets.

@pgibler
Created October 5, 2014 20:32
Show Gist options
  • Save pgibler/4cecc4dcd41b288756cd to your computer and use it in GitHub Desktop.
Save pgibler/4cecc4dcd41b288756cd to your computer and use it in GitHub Desktop.
Gist setup ruby by patchlevel
$ruby_version = '2.0.0'
$ruby_patchlevel = 'p451'
$full_ruby_version = "ruby-${ruby_version}-${ruby_patchlevel}"
class { 'rvm': }
# Make rvm install ruby at the version and patchlevel we want.
# Here, we install ruby-2.0.0-p451
# Set RVM to use it by default
rvm_system_ruby { $full_ruby_version:
ensure => present,
default_use => true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment