def select_repo
      remote_urls = %x(git remote -v 2> /dev/null | awk '{print $2}' | uniq).split("\n")
      remote_urls << (I18n.t :other, scope: :negroku)

      question = I18n.t :choose_repo_url, scope: :negroku
      selected_idx = Ask.list question, remote_urls

      if selected_idx == remote_urls.length - 1
        question = I18n.t :type_repo_url, scope: :negroku
        Ask.input question
      else remote_urls[selected_idx] end
    end
def select_repo
      remote_urls = %x(git remote -v 2> /dev/null | awk '{print $2}' | uniq).split("\n")
      remote_urls << (I18n.t :other, scope: :negroku)

      question = I18n.t :choose_repo_url, scope: :negroku
      selected_idx = Ask.list question, remote_urls

      if selected_idx == remote_urls.length - 1
        question = I18n.t :type_repo_url, scope: :negroku
        Ask.input question
      else remote_urls[selected_idx] end
    end
Get git remotes from current git and ask to select one