Sha256: 41eb92ed78e40c6e33b9b341ec42d47335fcabc4d8fbca29946dc2e3462f6bf8

Contents?: true

Size: 723 Bytes

Versions: 3

Compression:

Stored size: 723 Bytes

Contents

# frozen_string_literal: true

require_relative 'verifier'

module Dragnet
  module Verifiers
    # Base class for the Verifiers that need access to the repository to perform
    # the validation.
    class RepositoryVerifier < Dragnet::Verifiers::Verifier
      attr_reader :repository

      # @param [Dragnet::Repository] repository A +Dragnet::Repository+ object
      #   linked to the repository where the sources and MTR files are located
      def initialize(test_record:, repository:)
        super(test_record: test_record)
        @repository = repository
      end

      private

      # @return [String] The path to the repository.
      def path
        @path ||= repository.path
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dragnet-5.3.1 lib/dragnet/verifiers/repository_verifier.rb
dragnet-5.3.0 lib/dragnet/verifiers/repository_verifier.rb
dragnet-5.2.1 lib/dragnet/verifiers/repository_verifier.rb