class Hiera::Backend::Eyaml::HighlineHelper
Public Class Methods
Source
# File lib/hiera/backend/eyaml/highlinehelper.rb, line 11 def self.confirm?(message) result = ask("#{message} (y/N): ") %w[y yes].include?(result.downcase) || false end
Source
# File lib/hiera/backend/eyaml/highlinehelper.rb, line 7 def self.read_password ask('Enter password: ') { |q| q.echo = '*' } end