Permalink
Browse files

Allow gemset creation

  • Loading branch information...
1 parent 9ea64b7 commit fe3d4769c6a028ba516fd08872f4242e88e1f814 @jbarreneche jbarreneche committed Oct 3, 2011
Showing with 10 additions and 0 deletions.
  1. +6 −0 rvm/manifests/init.pp
  2. +4 −0 rvm/test/manifests/base.pp
View
@@ -30,4 +30,10 @@
Class["rvm"] -> Package<| provider == rvm |>
+ define gemset($ruby, $gemset) {
+ exec {"create $ruby@$gemset":
+ command => "/usr/local/rvm/bin/rvm use $ruby@$gemset --create",
+ require => Package[$ruby],
+ }
+ }
}
@@ -26,4 +26,8 @@
package {"ruby-1.9.2-p290@global:irbtools":
provider => 'rvm_gem',
require => Package['ruby-1.9.2-p290']
+}
+
+rvm::gemset {"Test gemset":
+ ruby => 'ruby-1.9.2-p290', gemset => 'onegemset',
}

0 comments on commit fe3d476

Please sign in to comment.