Permalink
Browse files

Allow specification of a particular rvm version

For instance, class { 'rvm::system': version => '1.7.2' }
Default version is 'latest'
  • Loading branch information...
1 parent 5135db8 commit a514d4f6adc29429d8a6a46a0588985eaa309b11 @fritz fritz committed Aug 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 manifests/classes/system.pp
@@ -1,10 +1,10 @@
-class rvm::system {
+class rvm::system($version='latest') {
include rvm::dependencies
exec { 'system-rvm':
path => '/usr/bin:/usr/sbin:/bin',
- command => 'bash -c \'/usr/bin/curl -s https://rvm.beginrescueend.com/install/rvm -o rvm-installer ; chmod +x rvm-installer ; rvm_bin_path=/usr/local/rvm/bin rvm_man_path=/usr/local/rvm/man ./rvm-installer\'',
+ command => "bash -c '/usr/bin/curl -s https://rvm.beginrescueend.com/install/rvm -o rvm-installer ; chmod +x rvm-installer ; rvm_bin_path=/usr/local/rvm/bin rvm_man_path=/usr/local/rvm/man ./rvm-installer --version ${version}'",
creates => '/usr/local/rvm/bin/rvm',
require => [
Class['rvm::dependencies'],

0 comments on commit a514d4f

Please sign in to comment.