class GitHelper::GitLabClient
Public Instance Methods
client()
click to toggle source
# File lib/git_helper/gitlab_client.rb, line 5 def client Gitlab.client(endpoint: gitlab_endpoint, private_token: git_config_reader.gitlab_token) end
Private Instance Methods
git_config_reader()
click to toggle source
# File lib/git_helper/gitlab_client.rb, line 9 def git_config_reader @git_config_reader ||= GitConfigReader.new end
gitlab_endpoint()
click to toggle source
# File lib/git_helper/gitlab_client.rb, line 13 def gitlab_endpoint 'https://gitlab.com/api/v4' end