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

lfs_object_uploader.rb « uploaders « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 88cf0450dcdadc16b85592aefff0cfdd9a6c9084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class LfsObjectUploader < ObjectStoreUploader
  storage_options Gitlab.config.lfs
  after :store, :schedule_migration_to_object_storage

  def self.local_store_path
    Gitlab.config.lfs.storage_path
  end

  def filename
    model.oid[4..-1]
  end

  private

  def default_path
    "#{model.oid[0, 2]}/#{model.oid[2, 2]}"
  end
end