Skip to content

UnZipTask

brocksamson edited this page Jul 26, 2011 · 3 revisions

The UnZipTask allows you to unzip files in an archive

How to use the UnZipTask

The unzip task has a number of properties to find the files to zip and where to save the output.
- file – this is the filename of the zip
- destination – Where you want the contents of the zip to be extracted to. In this example, it is the same directory as your build file.

unzip do |unzip|
  unzip.destination = File.dirname(__FILE__)
  unzip.file = "Archive.zip"
end
Something went wrong with that request. Please try again.