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

artifact_uploader.rb « uploaders « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f6e32aae2fdd764876df0266fe95122d06f76204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class ArtifactUploader < ObjectStoreUploader
  storage_options Gitlab.config.artifacts

  def self.local_store_path
    Gitlab.config.artifacts.path
  end

  def self.artifacts_upload_path
    File.join(self.local_store_path, 'tmp/uploads/')
  end

  private

  def default_path
    File.join(subject.created_at.utc.strftime('%Y_%m'), subject.project_id.to_s, subject.id.to_s)
  end
end