Class: CryptReboot::Initramfs::Extractor

Inherits:
Object
  • Object
show all
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 message
    decompressor.call(filename, dir)
    yield File.join(dir, subdir)
  end
end