summaryrefslogtreecommitdiff
path: root/puppet/modules/rubygems/manifests/brokengem.pp
blob: b3284d976c1e2657ca4895e5e6b3579177884f3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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$