Class: Gitlab::Artifacts::MigrationHelper
- Inherits:
-
Object
- Object
- Gitlab::Artifacts::MigrationHelper
- Defined in:
- lib/gitlab/artifacts/migration_helper.rb
Instance Method Summary collapse
Instance Method Details
#migrate_to_local_storage(&block) ⇒ Object
11 12 13 14 |
# File 'lib/gitlab/artifacts/migration_helper.rb', line 11 def migrate_to_local_storage(&block) artifacts = ::Ci::JobArtifact.with_files_stored_remotely migrate(artifacts, ObjectStorage::Store::LOCAL, &block) end |
#migrate_to_remote_storage(&block) ⇒ Object
6 7 8 9 |
# File 'lib/gitlab/artifacts/migration_helper.rb', line 6 def migrate_to_remote_storage(&block) artifacts = ::Ci::JobArtifact.with_files_stored_locally migrate(artifacts, ObjectStorage::Store::REMOTE, &block) end |