Class: CryptReboot::Luks::DataFetcher
- Inherits:
-
Object
- Object
- CryptReboot::Luks::DataFetcher
- Defined in:
- lib/crypt_reboot/luks/data_fetcher.rb
Overview
Fetch LUKS data including key (user will be asked for passphrase)
Instance Method Summary collapse
Instance Method Details
#call(headevice, target) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/crypt_reboot/luks/data_fetcher.rb', line 7 def call(headevice, target) version = detector.call(headevice) data = dumper.call(headevice, version) pass = asker.call("Please unlock disk #{target}: ") key = key_fetcher.call(headevice, pass) data.with_key(key) end |