init of gems package install wrapper
authorMarcel Haerry <haerry@puzzle.ch>
Wed, 15 Oct 2008 17:19:49 +0000 (19:19 +0200)
committerMarcel Haerry <haerry@puzzle.ch>
Wed, 15 Oct 2008 17:19:49 +0000 (19:19 +0200)
manifests/defines.pp [new file with mode: 0644]
manifests/init.pp

diff --git a/manifests/defines.pp b/manifests/defines.pp
new file mode 100644 (file)
index 0000000..caed0f3
--- /dev/null
@@ -0,0 +1,9 @@
+define rubygems::package(
+   $ensure = 'present' 
+){
+    pacakge{$name:
+        provider => gem,
+        ensure => $ensure,
+        require => Package['rubygems'],
+    }
+}
index 76d3e70..9316593 100644 (file)
@@ -13,6 +13,8 @@
 # the Free Software Foundation.
 #
 
+import 'defines.pp'
+
 class rubygems {
        package { rubygems: ensure => installed }
 }