Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ci/build_trace_chunks/fog.rb')
-rw-r--r--app/models/ci/build_trace_chunks/fog.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/app/models/ci/build_trace_chunks/fog.rb b/app/models/ci/build_trace_chunks/fog.rb
index cbf0c0a1696..fab85fae33d 100644
--- a/app/models/ci/build_trace_chunks/fog.rb
+++ b/app/models/ci/build_trace_chunks/fog.rb
@@ -3,10 +3,18 @@
module Ci
module BuildTraceChunks
class Fog
- def available?
+ def self.available?
object_store.enabled
end
+ def self.object_store
+ Gitlab.config.artifacts.object_store
+ end
+
+ def available?
+ self.class.available?
+ end
+
def data(model)
files.get(key(model))&.body
rescue Excon::Error::NotFound
@@ -85,7 +93,7 @@ module Ci
end
def object_store
- Gitlab.config.artifacts.object_store
+ self.class.object_store
end
def object_store_raw_config