Class: Gitlab::Ci::Config::Entry::Caches

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

Overview

Entry that represents caches configuration

Constant Summary collapse

MULTIPLE_CACHE_LIMIT =
4

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?, #inspect, #integer?, #leaf?, #location, #opt, #relevant?, #specified?, #string?, #valid?, #value, #warnings, with_aspect

Constructor Details

#initialize(*args) ⇒ Caches

Returns a new instance of Caches.



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

def initialize(*args)
  super

  @key = nil
end

Instance Method Details

#composable_classObject



33
34
35
# File 'lib/gitlab/ci/config/entry/caches.rb', line 33

def composable_class
  Entry::Cache
end