module Hoe::Travis

def travis_yml_edit path

def travis_yml_edit path
  loop do
    editor = ENV['EDITOR'] || 'vi'
    system "#{editor} #{path}"
    break true if travis_yml_check path
    abort unless $stdout.tty?
    print "\nRetry edit? [Yn]\n> "
    $stdout.flush
    break false if $stdin.gets =~ /\An/i
  end
end