added requiresgcc parameter
authorJuerg Gerber <gerber@puzzle.ch>
Tue, 21 Sep 2010 08:39:23 +0000 (10:39 +0200)
committerJuerg Gerber <gerber@puzzle.ch>
Tue, 21 Sep 2010 08:39:23 +0000 (10:39 +0200)
manifests/package.pp

index 84779c3..a0b604c 100644 (file)
@@ -1,6 +1,11 @@
 define rubygems::package(
-    $ensure = 'present'
+    $ensure = 'present', 
+    $requiresgcc = false
 ) {
+    if $requiresgcc {
+        require gcc
+    }
+
     package{$name:
         provider => gem,
         ensure => $ensure,