Commit 118a7b9a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Move stub_packages_object_storage to ee helper

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 505adfc2
module EE
module StubObjectStorage
def stub_packages_object_storage(**params)
stub_object_storage_uploader(config: ::Gitlab.config.packages.object_store,
uploader: ::Packages::PackageFileUploader,
remote_directory: 'packages',
**params)
end
end
end
module StubObjectStorage module StubObjectStorage
prepend EE::StubObjectStorage
def stub_object_storage_uploader( def stub_object_storage_uploader(
config:, config:,
uploader:, uploader:,
...@@ -72,11 +74,4 @@ module StubObjectStorage ...@@ -72,11 +74,4 @@ module StubObjectStorage
stub_object_storage(connection_params: Pseudonymizer::Uploader.object_store_credentials, stub_object_storage(connection_params: Pseudonymizer::Uploader.object_store_credentials,
remote_directory: Pseudonymizer::Uploader.remote_directory) remote_directory: Pseudonymizer::Uploader.remote_directory)
end end
def stub_packages_object_storage(**params)
stub_object_storage_uploader(config: Gitlab.config.packages.object_store,
uploader: ::Packages::PackageFileUploader,
remote_directory: 'packages',
**params)
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment