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 tag_message 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, #deprecation, #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, #array?, 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
19 20 21 |
# File 'lib/gitlab/ci/config/entry/release.rb', line 19 def description config[:description] end |
#value ⇒ Object
49 50 51 52 |
# File 'lib/gitlab/ci/config/entry/release.rb', line 49 def value @config[:assets] = assets_value if @config.key?(:assets) @config end |