Class: GitlabQuality::TestTooling::GitlabClient::BranchesDryClient

Inherits:
BranchesClient show all
Defined in:
lib/gitlab_quality/test_tooling/gitlab_client/branches_dry_client.rb

Constant Summary

Constants inherited from GitlabClient

GitlabClient::MAX_RETRY_ATTEMPTS, GitlabClient::RETRY_BACK_OFF_DELAY

Instance Method Summary collapse

Methods inherited from GitlabClient

#handle_gitlab_client_exceptions, #ignore_gitlab_client_exceptions, #initialize, #post_exception_to_slack

Constructor Details

This class inherits a constructor from GitlabQuality::TestTooling::GitlabClient::GitlabClient

Instance Method Details

#create(branch_name, ref) ⇒ Object



7
8
9
10
11
# File 'lib/gitlab_quality/test_tooling/gitlab_client/branches_dry_client.rb', line 7

def create(branch_name, ref)
  branch = { 'name' => branch_name, 'web_url' => 'https://example.com/dummy/branch/url' }
  puts "A branch would have been created with name: #{branch['name']}, web_url: #{branch['web_url']} and ref: #{ref}"
  branch
end