debian-mirror-gitlab/config/initializers/artifacts_direct_upload_support.rb

8 lines
321 B
Ruby
Raw Normal View History

2018-05-09 12:01:36 +05:30
artifacts_object_store = Gitlab.config.artifacts.object_store
if artifacts_object_store.enabled &&
artifacts_object_store.direct_upload &&
artifacts_object_store.connection&.provider.to_s != 'Google'
raise "Only 'Google' is supported as a object storage provider when 'direct_upload' of artifacts is used"
end