class GemHadar

def git_remotes

Returns:
  • (Array) - an array of remote names
def git_remotes
  remotes = ENV['GIT_REMOTE'].full?(:split, /\s+/)
  remotes or remotes = `git remote`.lines.map(&:chomp)
  remotes
end