Class: Gitlab::Ci::Config::Entry::Product::Variables

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

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

Constructor Details

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

Class Method Details

.defaultObject


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

def self.default(**)
  {}
end

Instance Method Details

#valueObject


26
27
28
29
30
# File 'lib/gitlab/ci/config/entry/product/variables.rb', line 26

def value
  @config
    .map { |key, value| [key.to_s, Array(value).map(&:to_s)] }
    .to_h
end