Class: CemAcpt::Config::CemAcptImage
- 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 ci_mode config_file dry_run images image_name_filter 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
Instance Method Summary collapse
-
#defaults ⇒ Object
The default configuration.
- #env_var_prefix ⇒ Object
- #valid_keys ⇒ Object
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
#defaults ⇒ Object
The default configuration
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/cem_acpt/config/cem_acpt_image.rb', line 38 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_ephemeral_ssh_key: false, platform: { name: 'gcp', }, quiet: false, verbose: false, } end |
#env_var_prefix ⇒ Object
33 34 35 |
# File 'lib/cem_acpt/config/cem_acpt_image.rb', line 33 def env_var_prefix 'CEM_ACPT_IMAGE' end |
#valid_keys ⇒ Object
29 30 31 |
# File 'lib/cem_acpt/config/cem_acpt_image.rb', line 29 def valid_keys VALID_KEYS end |