Class: CryptReboot::Luks::Dumper::LuksV2Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/crypt_reboot/luks/dumper/luks_v2_parser.rb

Overview

Parse LUKS2

Constant Summary collapse

ParsingError =
Class.new StandardError

Instance Method Summary collapse

Instance Method Details

#call(lines) ⇒ Object



10
11
12
13
# File 'lib/crypt_reboot/luks/dumper/luks_v2_parser.rb', line 10

def call(lines)
  data = parse_lines(lines)
  instantiate(data.to_h)
end