Class: Datadog::CI::Git::BaseBranchShaDetection::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/ci/git/base_branch_sha_detection/base.rb

Direct Known Subclasses

Guesser, MergeBaseExtractor

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(remote_name, source_branch) ⇒ Base

Returns a new instance of Base.



13
14
15
16
# File 'lib/datadog/ci/git/base_branch_sha_detection/base.rb', line 13

def initialize(remote_name, source_branch)
  @remote_name = remote_name
  @source_branch = source_branch
end

Instance Attribute Details

#remote_nameObject (readonly)

Returns the value of attribute remote_name.



10
11
12
# File 'lib/datadog/ci/git/base_branch_sha_detection/base.rb', line 10

def remote_name
  @remote_name
end

#source_branchObject (readonly)

Returns the value of attribute source_branch.



11
12
13
# File 'lib/datadog/ci/git/base_branch_sha_detection/base.rb', line 11

def source_branch
  @source_branch
end

Instance Method Details

#callObject

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/datadog/ci/git/base_branch_sha_detection/base.rb', line 18

def call
  raise NotImplementedError, "Subclasses must implement #call"
end