Class: CryptReboot::Luks::Checker

Inherits:
Object
  • Object
show all
Defined in:
lib/crypt_reboot/luks/checker.rb

Overview

Return true in case given device is LUKS (of given version is provided), false otherwise

Instance Method Summary collapse

Instance Method Details

#call(headevice, version = :any) ⇒ Object



7
8
9
10
# File 'lib/crypt_reboot/luks/checker.rb', line 7

def call(headevice, version = :any)
  args = version == :any ? [] : ['--type', version]
  runner.call(binary, 'isLuks', 'none', '--header', headevice, *args)
end