Class: CryptReboot::CryptTab::LuksToPlainConverter
- Inherits:
-
Object
- Object
- CryptReboot::CryptTab::LuksToPlainConverter
- Defined in:
- lib/crypt_reboot/crypt_tab/luks_to_plain_converter.rb
Overview
Convert given crypttab entry from LUKS to plain mode
Instance Method Summary collapse
Instance Method Details
#call(entry, data, keyfile) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/crypt_reboot/crypt_tab/luks_to_plain_converter.rb', line 7 def call(entry, data, keyfile) entry_class.new( target: entry.target, source: entry.source, key_file: keyfile, options: (entry., data), flags: entry.flags - [:luks] + [:plain] ) end |