Class: Gitlab::Ci::Config::Entry::Need::JobHash
- Inherits:
-
Gitlab::Config::Entry::Node
- Object
- Gitlab::Config::Entry::Node
- Gitlab::Ci::Config::Entry::Need::JobHash
- Defined in:
- lib/gitlab/ci/config/entry/need.rb
Constant Summary collapse
- ALLOWED_KEYS =
%i[job artifacts optional parallel].freeze
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::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 Method Details
#type ⇒ Object
63 64 65 |
# File 'lib/gitlab/ci/config/entry/need.rb', line 63 def type :job end |
#value ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/gitlab/ci/config/entry/need.rb', line 67 def value result = { name: job, artifacts: artifacts || artifacts.nil?, optional: !!optional } result[:parallel] = parallel_value if has_parallel? result end |