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


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

def perform(project_id)
  project = Project.find_by(id: project_id) # rubocop: disable CodeReuse/ActiveRecord

  return unless can_import?(project)

  import(project)
end