Class: ModuleSync::GitService::GitLab
- Defined in:
- lib/modulesync/git_service/gitlab.rb
Overview
GitLab creates and manages merge requests on gitlab.com or private GitLab installations.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(token, endpoint) ⇒ GitLab
constructor
A new instance of GitLab.
Methods inherited from Base
extract_hostname, #open_pull_request
Constructor Details
#initialize(token, endpoint) ⇒ GitLab
12 13 14 15 16 17 18 19 |
# File 'lib/modulesync/git_service/gitlab.rb', line 12 def initialize(token, endpoint) super() @api = Gitlab::Client.new( endpoint: endpoint, private_token: token, ) end |
Class Method Details
.guess_endpoint_from(remote:) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/modulesync/git_service/gitlab.rb', line 21 def self.guess_endpoint_from(remote:) endpoint = super return nil if endpoint.nil? endpoint += '/api/v4' endpoint end |