Class: Excavate::Extractors::SevenZipExtractor
- Defined in:
- lib/excavate/extractors/seven_zip_extractor.rb
Instance Method Summary collapse
Methods inherited from Extractor
Constructor Details
This class inherits a constructor from Excavate::Extractors::Extractor
Instance Method Details
#extract(target) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/excavate/extractors/seven_zip_extractor.rb', line 6 def extract(target) Dir.chdir(target) do File.open(@archive, "rb") do |file| SevenZipRuby::Reader.extract_all(file, target) end end end |