Class: Gitlab::Ci::Config::Entry::Jobs

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

Overview

Entry that represents a set of jobs.

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

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

#compose!

Methods inherited from Gitlab::Config::Entry::Node

#[], #add_warning, #ancestors, 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

Class Method Details

.all_typesObject


47
48
49
# File 'lib/gitlab/ci/config/entry/jobs.rb', line 47

def self.all_types
  TYPES
end

.find_type(name, config) ⇒ Object


51
52
53
54
55
# File 'lib/gitlab/ci/config/entry/jobs.rb', line 51

def self.find_type(name, config)
  self.all_types.find do |type|
    type.matching?(name, config)
  end
end

Instance Method Details

#composable_class(name, config) ⇒ Object


39
40
41
# File 'lib/gitlab/ci/config/entry/jobs.rb', line 39

def composable_class(name, config)
  self.class.find_type(name, config)
end