Class: CryptReboot::Luks::Dumper
- Inherits:
-
Object
- Object
- CryptReboot::Luks::Dumper
- Defined in:
- lib/crypt_reboot/luks/dumper.rb,
lib/crypt_reboot/luks/dumper/luks_v1_parser.rb,
lib/crypt_reboot/luks/dumper/luks_v2_parser.rb
Overview
Depending on LUKS version, delegates parsing to different parser
Defined Under Namespace
Classes: LuksV1Parser, LuksV2Parser
Instance Method Summary collapse
Instance Method Details
#call(headevice, version) ⇒ Object
7 8 9 10 11 |
# File 'lib/crypt_reboot/luks/dumper.rb', line 7 def call(headevice, version) dump = runner.call(binary, 'luksDump', 'none', '--header', headevice) parser = parsers.fetch(version) parser.call(dump) end |