Module: Gitlab::JiraImport::ImportWorker

Extended by:
ActiveSupport::Concern
Included in:
Stage::FinishImportWorker, Stage::ImportAttachmentsWorker, Stage::ImportIssuesWorker, Stage::ImportLabelsWorker, Stage::ImportNotesWorker
Defined in:
app/workers/concerns/gitlab/jira_import/import_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(project_id) ⇒ Object


16
17
18
19
20
21
22
# File 'app/workers/concerns/gitlab/jira_import/import_worker.rb', line 16

def perform(project_id)
  project = Project.find_by_id(project_id)

  return unless can_import?(project)

  import(project)
end