lib/danger/commands/init_helpers/interviewer.rb in danger-4.0.0 vs lib/danger/commands/init_helpers/interviewer.rb in danger-4.0.1
- old
+ new
@@ -50,24 +50,9 @@
output_command ||= command
ui.puts " " + output_command.magenta
system command
end
- def ask(question)
- answer = ""
- loop do
- ui.puts "\n#{question}?"
-
- show_prompt
- answer = STDIN.gets.chomp
-
- break if answer.empty?
-
- ui.print "\nYou need to provide an answer."
- end
- answer
- end
-
def ask_with_answers(question, possible_answers)
ui.print "\n#{question}? ["
print_info = proc do
possible_answers.each_with_index do |answer, i|