Class: Gitlab::Ci::Config::Entry::Service
- Inherits:
-
Gitlab::Config::Entry::Node
- Object
- Gitlab::Config::Entry::Node
- Gitlab::Ci::Config::Entry::Service
- Includes:
- Imageable
- Defined in:
- lib/gitlab/ci/config/entry/service.rb
Overview
Entry that represents a configuration of Docker service.
Constant Summary collapse
- ALLOWED_KEYS =
%i[command alias variables].freeze
Constants included from Imageable
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
#alias ⇒ Object
28 29 30 |
# File 'lib/gitlab/ci/config/entry/service.rb', line 28 def alias value[:alias] end |
#command ⇒ Object
32 33 34 |
# File 'lib/gitlab/ci/config/entry/service.rb', line 32 def command value[:command] end |
#value ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/gitlab/ci/config/entry/service.rb', line 36 def value if string? { name: @config } elsif hash? @config.merge( pull_policy: pull_policy_value ).compact else {} end end |