Class: VagrantWizard::Password

Inherits:
Input
  • Object
show all
Defined in:
lib/vagrant-wizard/inputs/password.rb

Instance Attribute Summary

Attributes inherited from Input

#data, #output, #prompt, #silent

Instance Method Summary collapse

Methods inherited from Input

#initialize

Constructor Details

This class inherits a constructor from VagrantWizard::Input

Instance Method Details

#processInputObject



7
8
9
10
11
12
13
14
# File 'lib/vagrant-wizard/inputs/password.rb', line 7

def processInput
  prompt = TTY::Prompt.new

  if @data.key?('default')
    puts "Warning: `default` key specified for `password` prompt type, but `default` is not accepted for `password`."
  end
  @output = prompt.mask(@prompt)
end