Class: Gitlab::Ci::Config::Entry::Include::Rules::Rule
- Inherits:
-
Gitlab::Config::Entry::Node
- Object
- Gitlab::Config::Entry::Node
- Gitlab::Ci::Config::Entry::Include::Rules::Rule
- Includes:
- Gitlab::Config::Entry::Attributable, Gitlab::Config::Entry::Configurable, Gitlab::Config::Entry::Validatable
- Defined in:
- lib/gitlab/ci/config/entry/include/rules/rule.rb
Constant Summary collapse
- ALLOWED_KEYS =
%i[if exists when changes].freeze
- ALLOWED_WHEN =
%w[never always].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::Configurable
#compose!, #entry_create!, #skip_config_hash_validation?
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
33 34 35 36 37 |
# File 'lib/gitlab/ci/config/entry/include/rules/rule.rb', line 33 def value config.merge( changes: (changes_value if changes_defined?) ).compact end |