Class: Gitlab::Ci::Config::Entry::Release
- Inherits:
-
Gitlab::Config::Entry::Node
- Object
- Gitlab::Config::Entry::Node
- Gitlab::Ci::Config::Entry::Release
- 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
-
#released_at ⇒ Object
readonly
Returns the value of attribute released_at.
Attributes inherited from Gitlab::Config::Entry::Node
#config, #default, #key, #metadata, #parent
Instance Method Summary collapse
- #description ⇒ Object
-
#has_description? ⇒ Boolean
Attributable description conflicts with ::Gitlab::Config::Entry::Node.description.
- #value ⇒ Object
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_at ⇒ Object (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
#description ⇒ Object
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
21 22 23 |
# File 'lib/gitlab/ci/config/entry/release.rb', line 21 def has_description? true end |
#value ⇒ Object
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 |