Class: Excavate::Extractors::CpioExtractor
- Defined in:
- lib/excavate/extractors/cpio_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
7 8 9 10 11 12 13 |
# File 'lib/excavate/extractors/cpio_extractor.rb', line 7 def extract(target) extract_cpio_new_format(target) rescue RuntimeError => e raise unless e..start_with?("Invalid magic") extract_cpio_old_format(target) end |