# File lib/kafo_wizards/highline/wizard.rb, line 7 def execute_menu begin choice = nil loop do say "\n" say ::HighLine.color(header, :yellow) unless header.empty? print_values say "\n" + description choice = print_menu break unless choice.nil? end validate(values) if triggers.include? choice choice rescue KafoWizards::ValidationError => e say ::HighLine.color("\nUnable to procedd due to following error(s):", :red) say ::HighLine.color(format_errors(e.messages), :red) say "\n" retry end end