Sha256: 10b31685db92cb694d6ebcd254c02a1bc7946b04c47ab45ef5f67dfc613034f5

Contents?: true

Size: 290 Bytes

Versions: 7

Compression:

Stored size: 290 Bytes

Contents

define archive::zip($source, $target) {
  exec {"$name unpack":
    command => "TMPFILE=\$(mktemp); curl -o \${TMPFILE}.zip ${source} && unzip \${TMPFILE}.zip -d ${target} && rm \$TMPFILE && rm \${TMPFILE}.zip && touch ${name}",
    creates => $name,
    require => Package['unzip'],
  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubyipmi-0.10.0 spec/puppetmodules/archive/manifests/zip.pp
rubyipmi-0.9.3 spec/puppetmodules/archive/manifests/zip.pp
rubyipmi-0.9.2 spec/puppetmodules/archive/manifests/zip.pp
rubyipmi-0.9.1 spec/puppetmodules/archive/manifests/zip.pp
rubyipmi-0.9.0 spec/puppetmodules/archive/manifests/zip.pp
rubyipmi-0.8.1 spec/puppetmodules/archive/manifests/zip.pp
rubyipmi-0.7.0 spec/puppetmodules/archive/manifests/zip.pp