Class: Gitlab::Ci::Config::Entry::Release

Inherits:
Gitlab::Config::Entry::Node show all
Includes:
Gitlab::Config::Entry::Attributable, Gitlab::Config::Entry::Configurable, Gitlab::Config::Entry::Validatable
Defined in:
lib/gitlab/ci/config/entry/release.rb,
lib/gitlab/ci/config/entry/release/assets.rb,
lib/gitlab/ci/config/entry/release/assets/link.rb,
lib/gitlab/ci/config/entry/release/assets/links.rb

Overview

Entry that represents a configuration of release:assets:links.

Defined Under Namespace

Classes: Assets

Constant Summary collapse

ALLOWED_KEYS =
%i[tag_name name description ref released_at milestones assets].freeze

Constants inherited from Gitlab::Config::Entry::Node

Gitlab::Config::Entry::Node::InvalidError

Instance Attribute Summary collapse

Attributes inherited from Gitlab::Config::Entry::Node

#config, #default, #key, #metadata, #parent

Instance Method Summary collapse

Methods included from Gitlab::Config::Entry::Validatable

#compose!, #errors, included, #validate, #validator

Methods included from Gitlab::Config::Entry::Configurable

#compose!, #entry_create!, #skip_config_hash_validation?

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?, #warnings, with_aspect

Constructor Details

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

Instance Attribute Details

#released_atObject (readonly)

Returns the value of attribute released_at


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

def released_at
  @released_at
end

Instance Method Details

#descriptionObject


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

def description
  config[:description]
end

#has_description?Boolean

Attributable description conflicts with ::Gitlab::Config::Entry::Node.description

Returns:

  • (Boolean)

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

def has_description?
  true
end

#valueObject


54
55
56
57
# File 'lib/gitlab/ci/config/entry/release.rb', line 54

def value
  @config[:assets] = assets_value if @config.key?(:assets)
  @config
end