Class: CryptReboot::Initramfs::Extractor
- Inherits:
-
Object
- Object
- CryptReboot::Initramfs::Extractor
- Defined in:
- lib/crypt_reboot/initramfs/extractor.rb
Overview
Create temporary directory, extract initramfs there and yield, cleaning afterwards
Instance Method Summary collapse
Instance Method Details
#call(filename) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/crypt_reboot/initramfs/extractor.rb', line 9 def call(filename) tmp_maker.call do |dir| logger.call decompressor.call(filename, dir) yield File.join(dir, subdir) end end |