Class: Excavate::Extractors::CpioExtractor

Inherits:
Extractor
  • Object
show all
Defined in:
lib/excavate/extractors/cpio_extractor.rb

Instance Method Summary collapse

Methods inherited from Extractor

eager_load_subclasses!, for_magic_type, handles, #initialize, registered_types, registry

Constructor Details

This class inherits a constructor from Excavate::Extractors::Extractor

Instance Method Details

#extract(target) ⇒ Object



10
11
12
13
14
# File 'lib/excavate/extractors/cpio_extractor.rb', line 10

def extract(target)
  reader = Omnizip::Formats::Cpio::Reader.new(@archive)
  reader.open
  reader.extract_all(target)
end