Class: Gitlab::GithubImport::Importer::Events::BaseImporter

Inherits:
Object
  • Object
show all
Includes:
PushPlaceholderReferences
Defined in:
lib/gitlab/github_import/importer/events/base_importer.rb

Overview

Base class for importing issue events during project import from GitHub

Instance Method Summary collapse

Methods included from PushPlaceholderReferences

#push_refs_with_ids, #push_with_composite_key, #push_with_record

Constructor Details

#initialize(project, client) ⇒ BaseImporter

project - An instance of ‘Project`. client - An instance of `Gitlab::GithubImport::Client`.



13
14
15
16
17
18
# File 'lib/gitlab/github_import/importer/events/base_importer.rb', line 13

def initialize(project, client)
  @project = project
  @client = client
  @user_finder = UserFinder.new(project, client)
  @mapper = Gitlab::GithubImport::ContributionsMapper.new(project)
end

Instance Method Details

#execute(issue_event) ⇒ Object

issue_event - An instance of ‘Gitlab::GithubImport::Representation::IssueEvent`.

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/gitlab/github_import/importer/events/base_importer.rb', line 21

def execute(issue_event)
  raise NotImplementedError
end