Sha256: 2788a319d957d41ba4c287c2f4765caf804bc58b623cc628ac086ee10141eaa5
Contents?: true
Size: 330 Bytes
Versions: 16
Compression:
Stored size: 330 Bytes
Contents
module Excavate module Extractors class GzipExtractor < Extractor def extract(target) Zlib::GzipReader.open(@archive) do |gz| basename = File.basename(@archive, ".*") path = File.join(target, basename) File.write(path, gz.read, mode: "wb") end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems