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: d11ebf0f9ca445b9d58a90c4fa74ab361df0e788 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class LfsObjectUploader < GitlabUploader
  storage :file

  def store_dir
    "#{Gitlab.config.lfs.storage_path}/#{model.oid[0, 2]}/#{model.oid[2, 2]}"
  end

  def cache_dir
    "#{Gitlab.config.lfs.storage_path}/tmp/cache"
  end

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

  def work_dir
    File.join(Gitlab.config.lfs.storage_path, 'tmp', 'work')
  end
end