Class: CemAcpt::Config::CemAcptImage

Inherits:
Base
  • Object
show all
Defined in:
lib/cem_acpt/config/cem_acpt_image.rb

Overview

Holds the configuration for cem_acpt_image

Constant Summary collapse

VALID_KEYS =
%i[
  cem_acpt_image
  dry_run
  images
  image_name_filter
  no_build_images
].freeze

Constants inherited from Base

Base::BASE_VALID_KEYS

Instance Attribute Summary

Attributes inherited from Base

#config, #env_vars

Instance Method Summary collapse

Methods inherited from Base

#[], #ci_mode?, #debug_mode?, #empty?, #explain, #get, #has?, #initialize, #inspect, #load, #quiet_mode?, #to_json, #to_yaml, #valid_keys, #verbose_mode?

Constructor Details

This class inherits a constructor from CemAcpt::Config::Base

Instance Method Details

#defaultsObject

The default configuration



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/cem_acpt/config/cem_acpt_image.rb', line 22

def defaults
  {
    cem_acpt_image: {
      no_linux: false,
      no_windows: false,
    },
    ci_mode: false,
    config_file: nil,
    dry_run: false,
    images: {},
    image_name_filter: Regexp.new('.*'),
    log_level: 'info',
    log_file: nil,
    log_format: 'text',
    no_destroy_nodes: false,
    no_ephemeral_ssh_key: false,
    platform: {
      name: 'gcp',
    },
    quiet: false,
    verbose: false,
  }
end

#env_var_prefixObject



17
18
19
# File 'lib/cem_acpt/config/cem_acpt_image.rb', line 17

def env_var_prefix
  'CEM_ACPT_IMAGE'
end