Class: Gitlab::Ci::Config::Entry::Include::Rules

Inherits:
Gitlab::Config::Entry::ComposableArray show all
Includes:
Gitlab::Config::Entry::Validatable
Defined in:
lib/gitlab/ci/config/entry/include/rules.rb

Overview

Include rules are validated separately from all other entries. This is because included files are expanded before ‘@root.compose!` runs in Ci::Config. As such, this class is directly instantiated and composed in lib/gitlab/ci/config/external/rules.rb.

Defined Under Namespace

Classes: Rule

Constant Summary

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::ComposableArray

#compose!, #descendants, #value

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?, #value, #warnings, with_aspect

Constructor Details

This class inherits a constructor from Gitlab::Config::Entry::Node

Instance Method Details

#composable_classObject



22
23
24
# File 'lib/gitlab/ci/config/entry/include/rules.rb', line 22

def composable_class
  Entry::Include::Rules::Rule
end