Class: Gitlab::BitbucketServerImport::Importers::LfsObjectImporter
- Inherits:
-
Object
- Object
- Gitlab::BitbucketServerImport::Importers::LfsObjectImporter
- Includes:
- Loggable
- Defined in:
- lib/gitlab/bitbucket_server_import/importers/lfs_object_importer.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(project, lfs_attributes) ⇒ LfsObjectImporter
constructor
A new instance of LfsObjectImporter.
Methods included from Loggable
#log_debug, #log_error, #log_info, #log_warn
Constructor Details
#initialize(project, lfs_attributes) ⇒ LfsObjectImporter
Returns a new instance of LfsObjectImporter.
9 10 11 12 |
# File 'lib/gitlab/bitbucket_server_import/importers/lfs_object_importer.rb', line 9 def initialize(project, lfs_attributes) @project = project @lfs_download_object = LfsDownloadObject.new(**lfs_attributes.symbolize_keys) end |
Instance Method Details
#execute ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/gitlab/bitbucket_server_import/importers/lfs_object_importer.rb', line 14 def execute log_info(import_stage: 'import_lfs_object', message: 'starting', oid: lfs_download_object.oid) Projects::LfsPointers::LfsDownloadService.new(project, lfs_download_object).execute log_info(import_stage: 'import_lfs_object', message: 'finished', oid: lfs_download_object.oid) end |