2018-06-06 16:42:18 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module GithubImport
|
2020-02-19 18:09:10 +00:00
|
|
|
class ImportLfsObjectWorker # rubocop:disable Scalability/IdempotentWorker
|
2018-06-06 16:42:18 +00:00
|
|
|
include ObjectImporter
|
|
|
|
|
|
|
|
def representation_class
|
|
|
|
Representation::LfsObject
|
|
|
|
end
|
|
|
|
|
|
|
|
def importer_class
|
|
|
|
Importer::LfsObjectImporter
|
|
|
|
end
|
|
|
|
|
|
|
|
def counter_name
|
|
|
|
:github_importer_imported_lfs_objects
|
|
|
|
end
|
|
|
|
|
|
|
|
def counter_description
|
|
|
|
'The number of imported GitHub Lfs Objects'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|