summaryrefslogtreecommitdiff
path: root/app/models/concerns/ci/artifactable.rb
blob: 54fb9021f2f1d58d7c85d32d5a1b48c93f7ddc08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module Ci
  module Artifactable
    extend ActiveSupport::Concern

    FILE_FORMAT_ADAPTERS = {
      gzip: Gitlab::Ci::Build::Artifacts::Adapters::GzipStream,
      raw: Gitlab::Ci::Build::Artifacts::Adapters::RawStream
    }.freeze

    included do
      enum file_format: {
        raw: 1,
        zip: 2,
        gzip: 3
      }, _suffix: true
    end
  end
end