Class: VagrantWizard::Confirm
- Defined in:
- lib/vagrant-wizard/inputs/confirm.rb
Instance Attribute Summary
Attributes inherited from Input
#data, #output, #prompt, #silent
Instance Method Summary collapse
Methods inherited from Input
Constructor Details
This class inherits a constructor from VagrantWizard::Input
Instance Method Details
#processInput ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/vagrant-wizard/inputs/confirm.rb', line 7 def processInput prompt = TTY::Prompt.new if @data.key?('default') puts "Warning: `default` key specified for `confirm` prompt type, but `default` is not accepted for `confirm`." end @output = prompt.yes?(@prompt) end |