Class: Gitlab::Ci::Config::Entry::Hidden

Inherits:
Gitlab::Config::Entry::Node show all
Includes:
Gitlab::Config::Entry::Validatable
Defined in:
lib/gitlab/ci/config/entry/hidden.rb

Overview

Entry that represents a hidden CI/CD key.

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, #description, #key, #metadata, #parent

Class Method Summary collapse

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, aspects, #compose!, default, #descendants, #errors, #hash?, #initialize, #inspect, #integer?, #leaf?, #location, #opt, #specified?, #string?, #valid?, #value, #warnings, with_aspect

Constructor Details

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

Class Method Details

.matching?(name, config) ⇒ Boolean

Returns:

  • (Boolean)

17
18
19
# File 'lib/gitlab/ci/config/entry/hidden.rb', line 17

def self.matching?(name, config)
  name.to_s.start_with?('.')
end

.visible?Boolean

Returns:

  • (Boolean)

21
22
23
# File 'lib/gitlab/ci/config/entry/hidden.rb', line 21

def self.visible?
  false
end

Instance Method Details

#relevant?Boolean

Returns:

  • (Boolean)

25
26
27
# File 'lib/gitlab/ci/config/entry/hidden.rb', line 25

def relevant?
  false
end