Sha256: 59bd5b7b04af056fdcae204495629048e874c582eb3a26a9adb397483ae4cc2c

Contents?: true

Size: 316 Bytes

Versions: 5

Compression:

Stored size: 316 Bytes

Contents

require "seven_zip_ruby"

module Excavate
  module Extractors
    class SevenZipExtractor < Extractor
      def extract(target)
        Dir.chdir(target) do
          File.open(@archive, "rb") do |file|
            SevenZipRuby::Reader.extract_all(file, target)
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
excavate-0.3.7 lib/excavate/extractors/seven_zip_extractor.rb
excavate-0.3.6 lib/excavate/extractors/seven_zip_extractor.rb
excavate-0.3.5 lib/excavate/extractors/seven_zip_extractor.rb
excavate-0.3.4 lib/excavate/extractors/seven_zip_extractor.rb
excavate-0.3.3 lib/excavate/extractors/seven_zip_extractor.rb