Method: Match::Storage::GitLab::Client#initialize
- Defined in:
- match/lib/match/storage/gitlab/client.rb
#initialize(api_v4_url:, project_id:, job_token: nil, private_token: nil) ⇒ Client
Returns a new instance of Client.
11 12 13 14 15 16 17 18 |
# File 'match/lib/match/storage/gitlab/client.rb', line 11 def initialize(api_v4_url:, project_id:, job_token: nil, private_token: nil) @job_token = job_token @private_token = private_token @api_v4_url = api_v4_url @project_id = project_id UI.important("JOB_TOKEN and PRIVATE_TOKEN both defined, using JOB_TOKEN to execute this job.") if @job_token && @private_token end |