Class: CryptReboot::PassphraseAsker

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

Overview

Ask user for passphrase and return it

Instance Method Summary collapse

Instance Method Details

#call(prompt) ⇒ Object



8
9
10
11
12
13
# File 'lib/crypt_reboot/passphrase_asker.rb', line 8

def call(prompt)
  print prompt
  $stdin.noecho(&:gets).chomp
ensure
  puts
end