Class: CryptReboot::CryptTab::EntrySerializer

Inherits:
Object
  • Object
show all
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)
  floptions = (entry.flags + serialize_options(entry.options)).join(',')
  [entry.target, entry.source, entry.key_file, floptions].join(' ')
end