Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow gemset creation

  • Loading branch information...
commit fe3d4769c6a028ba516fd08872f4242e88e1f814 1 parent 9ea64b7
@jbarreneche jbarreneche authored
Showing with 10 additions and 0 deletions.
  1. +6 −0 rvm/manifests/init.pp
  2. +4 −0 rvm/test/manifests/base.pp
View
6 rvm/manifests/init.pp
@@ -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],
+ }
+ }
}
View
4 rvm/test/manifests/base.pp
@@ -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',
}
Please sign in to comment.
Something went wrong with that request. Please try again.