class Hiera::Backend::Eyaml::HighlineHelper
Public Class Methods
confirm?(message)
click to toggle source
# File lib/hiera/backend/eyaml/highlinehelper.rb, line 11 def self.confirm?(message) result = ask("#{message} (y/N): ") if result.downcase == 'y' or result.downcase == 'yes' true else false end end
read_password()
click to toggle source
# File lib/hiera/backend/eyaml/highlinehelper.rb, line 7 def self.read_password ask('Enter password: ') { |q| q.echo = '*' } end