summaryrefslogtreecommitdiff
path: root/puppet/modules/rubygems/manifests/brokengem.pp
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-07-12 16:46:02 -0400
committerMicah <micah@leap.se>2016-07-12 16:46:02 -0400
commit10c80c65126cd84e6010495d30cb921d245f0d33 (patch)
tree63c45dbde4c8aca9e9ec847aaae87d352e0b0a00 /puppet/modules/rubygems/manifests/brokengem.pp
parentb5c3c14ae094bff896d19ee37f967e8fc8c34017 (diff)
git subrepo clone https://leap.se/git/puppet_rubygems puppet/modules/rubygems
subrepo: subdir: "puppet/modules/rubygems" merged: "510a369" upstream: origin: "https://leap.se/git/puppet_rubygems" branch: "master" commit: "510a369" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo" commit: "1e79595" Change-Id: Id2668c747e7d8b0a73415180baee9edece1017db
Diffstat (limited to 'puppet/modules/rubygems/manifests/brokengem.pp')
-rw-r--r--puppet/modules/rubygems/manifests/brokengem.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/puppet/modules/rubygems/manifests/brokengem.pp b/puppet/modules/rubygems/manifests/brokengem.pp
new file mode 100644
index 00000000..b3284d97
--- /dev/null
+++ b/puppet/modules/rubygems/manifests/brokengem.pp
@@ -0,0 +1,14 @@
+define rubygems::brokengem($source,$ensure) {
+ exec { "get-gem-$name":
+ command => "/usr/bin/wget --output-document=/tmp/$name.gem $source",
+ creates => "/tmp/$name.gem",
+ before => Package[$name]
+ }
+ package{$name:
+ ensure => $ensure,
+ provider => gem,
+ source => "/tmp/$name.gem"
+ }
+}
+
+# $Id$