Class: CryptReboot::Initramfs::Archiver
- Inherits:
-
Object
- Object
- CryptReboot::Initramfs::Archiver
- Defined in:
- lib/crypt_reboot/initramfs/archiver.rb
Overview
Create compressed CPIO archive from files in a given directory
Instance Method Summary collapse
Instance Method Details
#call(dir, archive) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/crypt_reboot/initramfs/archiver.rb', line 9 def call(dir, archive) Dir.chdir(dir) do uncompressed = runner.call(cpio, '-oH', 'newc', '--reproducible', input: finder.call) gziper.call(archive, uncompressed) end end |