Class: Gitlab::Ci::Config::Header::Component
- Inherits:
-
Gitlab::Config::Entry::Node
- Object
- Gitlab::Config::Entry::Node
- Gitlab::Ci::Config::Header::Component
- Includes:
- Gitlab::Config::Entry::Validatable
- Defined in:
- lib/gitlab/ci/config/header/component.rb
Overview
Component context configuration used for interpolation with the CI configuration.
This class defines the available component context information that can be used in CI configuration interpolation.
Constant Summary collapse
- ALLOWED_VALUES =
%i[name sha version reference].freeze
- ALLOWED_VALUES_TO_S =
ALLOWED_VALUES.map(&:to_s).freeze
Constants inherited from Gitlab::Config::Entry::Node
Gitlab::Config::Entry::Node::InvalidError
Instance Attribute Summary
Attributes inherited from Gitlab::Config::Entry::Node
#config, #default, #deprecation, #description, #key, #metadata, #parent
Instance Method Summary collapse
Methods included from Gitlab::Config::Entry::Validatable
#compose!, #errors, included, #validate, #validator
Methods inherited from Gitlab::Config::Entry::Node
#[], #add_warning, #ancestors, #array?, aspects, #compose!, default, #descendants, #errors, #hash?, #initialize, #inspect, #integer?, #leaf?, #location, #opt, #relevant?, #specified?, #string?, #valid?, #warnings, with_aspect
Constructor Details
This class inherits a constructor from Gitlab::Config::Entry::Node
Instance Method Details
#value ⇒ Object
23 24 25 26 27 |
# File 'lib/gitlab/ci/config/header/component.rb', line 23 def value return [] unless valid? config.uniq.map(&:to_sym) end |