Class: CryptReboot::CryptTab::EntrySerializer
- Inherits:
-
Object
- Object
- CryptReboot::CryptTab::EntrySerializer
- Defined in:
- lib/crypt_reboot/crypt_tab/entry_serializer.rb
Overview
Serialize crypttab entry into one line of text
Instance Method Summary collapse
Instance Method Details
#call(entry) ⇒ Object
7 8 9 10 |
# File 'lib/crypt_reboot/crypt_tab/entry_serializer.rb', line 7 def call(entry) = (entry.flags + (entry.)).join(',') [entry.target, entry.source, entry.key_file, ].join(' ') end |