class Hiera::Backend::Eyaml::HighlineHelper
Public Class Methods
confirm?(message)
click to toggle source
# File lib/hiera/backend/eyaml/highlinehelper.rb, line 12 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 8 def self.read_password ask("Enter password: ") {|q| q.echo = "*" } end