unzip

Defined type for unzipping files on Windows

reidmv

reidmv

37,650 downloads

37,013 latest version

2.3 quality score

Version information

  • 0.1.2 (latest)
  • 0.1.1
  • 0.1.0
released Nov 4th 2014
This version is compatible with:
  • windows

Start using this module

Tags: windows, unzip

Documentation

reidmv/unzip — version 0.1.2 Nov 4th 2014

Unzip

Windows only.

Given a source zip file and a directory/file that should result when it is extracted, this defined type implicitly ensures that an archive is extracted.

Parameters

source

The fully-qualified path to the zip file to extract. This file must already exist on the system; that is, it cannot be a remote URL. You can use pget or another resource to fetch it first.

creates

A file or folder that will result from extracting the archive. This is used to determine whether or not the archive has been successfully extracted.

destination

Optional. The destination directory into which to extract the archive. If not specified, the dirname of the creates parameter will be used as the destination.

Examples

unzip { "example":
  source  => 'C:\src\bar.zip',
  creates => 'C:\test\bar',
}