Sha256: 6ead782ea20cb485d8607c3fa10a65818b3c0c0ef43c3a5886ef97ed08a6a164

Contents?: true

Size: 466 Bytes

Versions: 6

Compression:

Stored size: 466 Bytes

Contents

class TestRepository
  include Elasticsearch::Git::Repository

  CLIENT = Elasticsearch::Client.new(
    host: (ENV['ELASTICSEARCH_HOST'] || 'localhost')
  )

  self.__elasticsearch__.client = CLIENT

  def initialize(id = 'test_1', project_id = 1)
    @repo_id = id
    @project_id = 1
  end

  def client_for_indexing
    CLIENT
  end

  def repository_id
    @repo_id
  end

  def project_id
    @project_id
  end

  def path_to_repo
    TEST_REPO_PATH
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gitlab-elasticsearch-git-1.2.0 spec/support/test_repository.rb
gitlab-elasticsearch-git-1.1.1 spec/support/test_repository.rb
gitlab-elasticsearch-git-1.1.0 spec/support/test_repository.rb
gitlab-elasticsearch-git-1.0.2 spec/support/test_repository.rb
gitlab-elasticsearch-git-1.0.1 spec/support/test_repository.rb
gitlab-elasticsearch-git-1.0.0 spec/support/test_repository.rb