Class: Uploads::Fog

Inherits:
Base
  • Object
show all
Extended by:
Gitlab::Utils::Override
Includes:
ObjectStorage::FogHelpers
Defined in:
app/models/uploads/fog.rb

Constant Summary

Constants inherited from Base

Base::BATCH_SIZE

Instance Attribute Summary

Attributes inherited from Base

#logger

Instance Method Summary collapse

Methods included from Gitlab::Utils::Override

extended, extensions, included, method_added, override, prepended, queue_verification, verify!

Methods included from ObjectStorage::FogHelpers

#available?

Methods inherited from Base

#delete_keys_async, #initialize

Constructor Details

This class inherits a constructor from Uploads::Base

Instance Method Details

#delete_keys(keys) ⇒ Object



14
15
16
# File 'app/models/uploads/fog.rb', line 14

def delete_keys(keys)
  keys.each { |key| delete_object(key) }
end

#keys(relation) ⇒ Object



8
9
10
11
12
# File 'app/models/uploads/fog.rb', line 8

def keys(relation)
  return [] unless available?

  relation.pluck(:path)
end