Class: Dragnet::Verifiers::RepositoryVerifier

Inherits:
Verifier
  • Object
show all
Defined in:
lib/dragnet/verifiers/repository_verifier.rb

Overview

Base class for the Verifiers that need access to the repository to perform the validation.

Direct Known Subclasses

ChangesVerifier, FilesVerifier

Instance Attribute Summary collapse

Attributes inherited from Verifier

#test_record

Instance Method Summary collapse

Methods inherited from Verifier

#verify

Methods included from Helpers::RepositoryHelper

#relative_to_repo, #repo_base, #shorten_sha1

Constructor Details

#initialize(test_record:, repository:) ⇒ RepositoryVerifier

Returns a new instance of RepositoryVerifier.

Parameters:

  • repository (Dragnet::Repository)

    A Dragnet::Repository object linked to the repository where the sources and MTR files are located



14
15
16
17
# File 'lib/dragnet/verifiers/repository_verifier.rb', line 14

def initialize(test_record:, repository:)
  super(test_record: test_record)
  @repository = repository
end

Instance Attribute Details

#repositoryObject (readonly)

Returns the value of attribute repository.



10
11
12
# File 'lib/dragnet/verifiers/repository_verifier.rb', line 10

def repository
  @repository
end