Module: Awskeyring::Input

Defined in:
lib/awskeyring/input.rb

Overview

Input methods for Awskeyring

Class Method Summary collapse

Class Method Details

.read_secret(prompt) ⇒ Object

Read a secret in without echoing the characters

Parameters:

  • prompt (String)

    text to prompt user with.



10
11
12
13
# File 'lib/awskeyring/input.rb', line 10

def self.read_secret(prompt)
  $stdout.print(prompt)
  hide_input
end