Sha256: 5bf3f4a301e968c4daeaee9323bc2ee0938192f618027198275e1fb35930f89e

Contents?: true

Size: 291 Bytes

Versions: 7

Compression:

Stored size: 291 Bytes

Contents

# encoding: UTF-8

module Tetra
  # encapsulates unzip
  class Unzip
    include ProcessRunner

    # decompresses a file in a target directory
    def decompress(zipfile, directory)
      result = run("unzip #{zipfile} -d #{directory}")
      result.strip if result != ""
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tetra-2.0.6 lib/tetra/facades/unzip.rb
tetra-2.0.5 lib/tetra/facades/unzip.rb
tetra-2.0.4 lib/tetra/facades/unzip.rb
tetra-2.0.3 lib/tetra/facades/unzip.rb
tetra-2.0.2 lib/tetra/facades/unzip.rb
tetra-2.0.1 lib/tetra/facades/unzip.rb
tetra-2.0.0 lib/tetra/facades/unzip.rb