Sha256: 4fb47d45c5a2fe0e8333f3739192cd765373e2c899cbd01147f3767319db3e5a

Contents?: true

Size: 269 Bytes

Versions: 10

Compression:

Stored size: 269 Bytes

Contents

require "seven_zip_ruby"

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
excavate-0.3.1 lib/excavate/extractors/seven_zip_extractor.rb
excavate-0.3.0 lib/excavate/extractors/seven_zip_extractor.rb
excavate-0.2.5 lib/excavate/extractors/seven_zip_extractor.rb
excavate-0.2.4 lib/excavate/extractors/seven_zip_extractor.rb
excavate-0.2.3 lib/excavate/extractors/seven_zip_extractor.rb
excavate-0.2.2 lib/excavate/extractors/seven_zip_extractor.rb
excavate-0.2.1 lib/excavate/extractors/seven_zip_extractor.rb
excavate-0.2.0 lib/excavate/extractors/seven_zip_extractor.rb
excavate-0.1.1 lib/excavate/extractors/seven_zip_extractor.rb
excavate-0.1.0 lib/excavate/extractors/seven_zip_extractor.rb