Class: Central::Devtools::Config::Container

Inherits:
Central::Devtools::Config show all
Defined in:
lib/central/devtools/config.rb

Overview

Container configuration

Constant Summary collapse

FILE =
'container.yml'.freeze
OPTIONS =
%w(
  prefix
  component
  build_tag
  from_image
  from_version
).freeze

Constants inherited from Central::Devtools::Config

DEFAULT_CONFIG, TypeError

Instance Method Summary collapse

Methods inherited from Central::Devtools::Config

#config_file

Instance Method Details

#optionsHash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Options hash for the container

Returns:

  • (Hash)


185
186
187
188
189
# File 'lib/central/devtools/config.rb', line 185

def options
  OPTIONS.each_with_object({}) do |name, hash|
    hash[name] = raw.fetch(name, nil)
  end
end