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

policy.rb « build « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 43c46ad74af3fc9beff93e8fca2d9ed340f107e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Gitlab
  module Ci
    module Build
      module Policy
        def self.fabricate(specs)
          specifications = specs.to_h.map do |spec, value|
            self.const_get(spec.to_s.camelize).new(value)
          end

          specifications.compact
        end
      end
    end
  end
end