summaryrefslogtreecommitdiff
path: root/app/uploaders/lfs_object_uploader.rb
blob: 8a5f599c1d34f8007f5f20e42af8a1fb5e493484 (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
    subject.oid[4..-1]
  end

  private

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