Class: CryptReboot::CryptTab::Serializer

Inherits:
Object
  • Object
show all
Defined in:
lib/crypt_reboot/crypt_tab/serializer.rb

Overview

Serialize entries and return crypttab file content as a string

Instance Method Summary collapse

Instance Method Details

#call(entries) ⇒ Object



7
8
9
10
# File 'lib/crypt_reboot/crypt_tab/serializer.rb', line 7

def call(entries)
  body = serialize(entries).join("\n")
  "#{header}\n#{body}\n"
end