Skip to content

Instantly share code, notes, and snippets.

@tnaoto
Created July 9, 2013 16:07
Show Gist options
  • Save tnaoto/5958667 to your computer and use it in GitHub Desktop.
Save tnaoto/5958667 to your computer and use it in GitHub Desktop.
require 'zlib'
require 'archive/tar/minitar'
include Archive::Tar
tgz = Zlib::GzipReader.new(File.open('test.tgz', 'rb'))
Minitar.unpack(tgz, 'x')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment