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[
  ci_mode
  config_file
  images
  log_level
  log_file
  log_format
  no_destroy_nodes
  no_ephemeral_ssh_key
  platform
  provisioner
  quiet
  terraform
  user_config
  verbose
].freeze

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, #load, #quiet_mode?, #to_json, #to_yaml, #verbose_mode?

Constructor Details

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

Instance Method Details

#defaultsObject

The default configuration



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/cem_acpt/config/cem_acpt_image.rb', line 35

def defaults
  {
    ci_mode: false,
    config_file: nil,
    images: {},
    log_level: 'info',
    log_file: nil,
    log_format: 'text',
    no_ephemeral_ssh_key: false,
    platform: {
      name: 'gcp',
    },
    quiet: false,
    verbose: false,
  }
end

#env_var_prefixObject



30
31
32
# File 'lib/cem_acpt/config/cem_acpt_image.rb', line 30

def env_var_prefix
  'CEM_ACPT_IMAGE'
end

#valid_keysObject



26
27
28
# File 'lib/cem_acpt/config/cem_acpt_image.rb', line 26

def valid_keys
  VALID_KEYS
end