Permalink
Browse files

Fix rvm gemset installation (newer rvm version complaining for callin…

…g directly rvm script)
  • Loading branch information...
1 parent f270adc commit 8e091fdda715e5d427e7f93b2b4cf45f05ac25b9 @jbarreneche jbarreneche committed Dec 20, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 rvm/manifests/init.pp
View
@@ -9,7 +9,7 @@
}
define user ( $user = 'root' ) {
- exec {"group-assign-$user":
+ exec {"group-assign-${user}":
unless => "/usr/bin/groups ${user} | grep rvm",
command => "/usr/sbin/usermod -aG rvm ${user}",
require => Exec['rvm-install']
@@ -31,10 +31,11 @@
Class["rvm"] -> Package<| provider == rvm |>
define gemset($ruby, $gemset) {
- exec {"create $ruby@$gemset":
- command => "/usr/local/rvm/bin/rvm use $ruby@$gemset --create",
+ exec {"create ${ruby}@${gemset}":
+ command => "bash -lc 'rvm use ${ruby}@${gemset} --create'",
+ path => '/usr/bin:/usr/sbin:/bin:/usr/local/rvm/bin',
require => Package[$ruby],
- creates => "/usr/local/rvm/gems/$ruby@$gemset"
+ creates => "/usr/local/rvm/gems/${ruby}@${gemset}",
}
}
}

0 comments on commit 8e091fd

Please sign in to comment.