Class: Gitlab::Ci::Config::Entry::Image
- Inherits:
-
Gitlab::Config::Entry::Node
- Object
- Gitlab::Config::Entry::Node
- Gitlab::Ci::Config::Entry::Image
- Includes:
- Imageable
- Defined in:
- lib/gitlab/ci/config/entry/image.rb
Overview
Entry that represents a Docker image.
Constant Summary
Constants included from Imageable
Gitlab::Ci::Config::Entry::Imageable::IMAGEABLE_ALLOWED_KEYS
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 Imageable
#entrypoint, #name, #skip_config_hash_validation?, #with_image_ports?
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
#value ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/gitlab/ci/config/entry/image.rb', line 17 def value if string? { name: @config } elsif hash? { name: @config[:name], entrypoint: @config[:entrypoint], ports: (ports_value if ports_defined?), pull_policy: pull_policy_value }.compact else {} end end |