def gitlab_endpoint_exists?(gitlab_url)
      with_gitlab(gitlab_url, 'Iamsecret') do |g|
        g.user
      end
    rescue Gitlab::Error::Unauthorized
      true
    rescue Exception
      false
    end
def gitlab_endpoint_exists?(gitlab_url)
      with_gitlab(gitlab_url, 'Iamsecret') do |g|
        g.user
      end
    rescue Gitlab::Error::Unauthorized
      true
    rescue Exception
      false
    end
Checks whether there is a gitlab installation
 at the given +gitlab_url+