Module: Gitlab::Ci::Build::Policy

Defined in:
lib/gitlab/ci/build/policy.rb,
lib/gitlab/ci/build/policy/refs.rb,
lib/gitlab/ci/build/policy/changes.rb,
lib/gitlab/ci/build/policy/variables.rb,
lib/gitlab/ci/build/policy/kubernetes.rb,
lib/gitlab/ci/build/policy/specification.rb

Defined Under Namespace

Classes: Changes, Kubernetes, Refs, Specification, Variables

Class Method Summary collapse

Class Method Details

.fabricate(specs) ⇒ Object


7
8
9
10
11
12
13
# File 'lib/gitlab/ci/build/policy.rb', line 7

def self.fabricate(specs)
  specifications = specs.to_h.map do |spec, value|
    self.const_get(spec.to_s.camelize, false).new(value)
  end

  specifications.compact
end