Class: Gitlab::GithubImport::ImportProtectedBranchWorker

Inherits:
Object
  • Object
show all
Includes:
ObjectImporter
Defined in:
app/workers/gitlab/github_import/import_protected_branch_worker.rb

Overview

rubocop:disable Scalability/IdempotentWorker

Constant Summary

Constants included from ObjectImporter

ObjectImporter::NotRetriableError

Instance Method Summary collapse

Methods included from ObjectImporter

#import, #increment_object_counter?, #perform_failure

Instance Method Details

#importer_classObject



14
15
16
# File 'app/workers/gitlab/github_import/import_protected_branch_worker.rb', line 14

def importer_class
  Importer::ProtectedBranchImporter
end

#object_typeObject



18
19
20
# File 'app/workers/gitlab/github_import/import_protected_branch_worker.rb', line 18

def object_type
  :protected_branch
end

#representation_classObject



10
11
12
# File 'app/workers/gitlab/github_import/import_protected_branch_worker.rb', line 10

def representation_class
  Gitlab::GithubImport::Representation::ProtectedBranch
end