Skip to content

Commit 4ec33d3

Browse files
committed
fixes RVM aliasing [closes rails#62]
Fuzzy aliasing no longer worked here, being more strict.
1 parent f29e73a commit 4ec33d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

puppet/manifests/default.pp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
$as_vagrant = 'sudo -u vagrant -H bash -l -c'
33
$home = '/home/vagrant'
44

5+
# Pick one modern enough, supported in recent Rails versions, and for which RVM
6+
# provides binaries.
7+
$ruby_version = '2.0.0-p353'
8+
59
Exec {
610
path => ['/usr/sbin', '/usr/bin', '/sbin', '/bin']
711
}
@@ -135,7 +139,7 @@
135139
# The rvm executable is more suitable for automated installs.
136140
#
137141
# use a ruby patch level known to have a binary
138-
command => "${as_vagrant} '${home}/.rvm/bin/rvm install ruby-2.0.0-p353 --binary --autolibs=enabled && rvm alias create default 2.0'",
142+
command => "${as_vagrant} '${home}/.rvm/bin/rvm install ruby-${ruby_version} --binary --autolibs=enabled && rvm alias create default ${ruby_version}'",
139143
creates => "${home}/.rvm/bin/ruby",
140144
require => Exec['install_rvm']
141145
}

0 commit comments

Comments
 (0)