Class: Gitlab::Ci::Config::Header::Input

Inherits:
Gitlab::Config::Entry::Node show all
Includes:
Entry::BaseInput, Gitlab::Config::Entry::Configurable
Defined in:
lib/gitlab/ci/config/header/input.rb,
lib/gitlab/ci/config/header/input/rules.rb,
lib/gitlab/ci/config/header/input/rules/rule.rb

Overview

Input parameter used for interpolation with the CI configuration.

Defined Under Namespace

Classes: Rules

Constant Summary collapse

ADDITIONAL_ALLOWED_KEYS =
%i[rules].freeze
ALLOWED_KEYS =
(COMMON_ALLOWED_KEYS + ADDITIONAL_ALLOWED_KEYS).freeze

Constants included from Entry::BaseInput

Entry::BaseInput::ALLOWED_OPTIONS_LIMIT, Entry::BaseInput::COMMON_ALLOWED_KEYS

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 Entry::BaseInput

#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

#input_rulesObject



27
28
29
30
31
# File 'lib/gitlab/ci/config/header/input.rb', line 27

def input_rules
  return unless config.is_a?(Hash) && config.key?(:rules)

  config[:rules]
end