Class: CryptReboot::CryptTab::Deserializer
- Inherits:
-
Object
- Object
- CryptReboot::CryptTab::Deserializer
- Defined in:
- lib/crypt_reboot/crypt_tab/deserializer.rb
Overview
Load crypttab file and return array with deserialized entries
Instance Method Summary collapse
Instance Method Details
#call(filename = nil, content: File.read(filename)) ⇒ Object
7 8 9 10 11 |
# File 'lib/crypt_reboot/crypt_tab/deserializer.rb', line 7 def call(filename = nil, content: File.read(filename)) split_to_important_lines(content).map do |line| entry_deserializer.call line end end |