Module: Capsaicin::UI::AskPass

Defined in:
lib/capsaicin/ui.rb

Instance Method Summary collapse

Instance Method Details

#password_prompt(prompt = 'Password: ') ⇒ Object



4
5
6
7
8
9
10
# File 'lib/capsaicin/ui.rb', line 4

def password_prompt(prompt='Password: ')
  if cap_askpass = ENV['CAP_ASKPASS']
    `#{cap_askpass} "#{prompt}"`.strip
  else
    password_prompt_console
  end
end