Class: ConfigOMat::Configurator::Memory

Inherits:
LifecycleVM::Memory
  • Object
show all
Defined in:
lib/config_o_mat/configurator/memory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv: [], env: {}, early_exit: false, configuration_directory: nil, runtime_directory: nil, logs_directory: nil, run_count: 0, profile_defs: {}, template_defs: {}, service_defs: {}, dependencies: {}, refresh_interval: 5, client_id: '', logger: nil, compiled_templates: {}, applied_profiles: {}, profiles_to_apply: [], applying_profile: nil, generated_templates: {}, services_to_reload: Set.new, last_refresh_time: 0, next_state: :running, retry_count: 3, retries_left: 3, retry_wait: 2, region: nil, appconfig_client: nil, secretsmanager_client: nil, s3_client: nil, systemd_interface: nil, secrets_loader_memory: nil, gc_compact: 0, gc_stat: 0, fallback_s3_bucket: nil) ⇒ Memory

Returns a new instance of Memory.



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# File 'lib/config_o_mat/configurator/memory.rb', line 32

def initialize(
  argv: [],
  env: {},
  early_exit: false,
  configuration_directory: nil,
  runtime_directory: nil,
  logs_directory: nil,
  run_count: 0,
  profile_defs: {},
  template_defs: {},
  service_defs: {},
  dependencies: {},
  refresh_interval: 5,
  client_id: '',
  logger: nil,
  compiled_templates: {},
  applied_profiles: {},
  profiles_to_apply: [],
  applying_profile: nil,
  generated_templates: {},
  services_to_reload: Set.new,
  last_refresh_time: 0,
  next_state: :running,
  retry_count: 3,
  retries_left: 3,
  retry_wait: 2,
  region: nil,
  appconfig_client: nil,
  secretsmanager_client: nil,
  s3_client: nil,
  systemd_interface: nil,
  secrets_loader_memory: nil,
  gc_compact: 0,
  gc_stat: 0,
  fallback_s3_bucket: nil
)
  super()

  @argv = argv
  @env = env
  @early_exit = early_exit
  @configuration_directory = configuration_directory
  @runtime_directory = runtime_directory
  @logs_directory = logs_directory
  @run_count = run_count
  @profile_defs = profile_defs
  @template_defs = template_defs
  @service_defs = service_defs
  @dependencies = dependencies
  @refresh_interval = refresh_interval
  @client_id = client_id
  @logger = logger
  @compiled_templates = compiled_templates
  @applied_profiles = applied_profiles
  @profiles_to_apply = profiles_to_apply
  @applying_profile = applying_profile
  @generated_templates = generated_templates
  @services_to_reload = services_to_reload
  @last_refresh_time = last_refresh_time
  @next_state = next_state
  @retry_count = retry_count
  @retries_left = retries_left
  @retry_wait = retry_wait
  @region = region
  @appconfig_client = appconfig_client
  @secretsmanager_client = secretsmanager_client
  @s3_client = s3_client
  @systemd_interface = systemd_interface
  @secrets_loader_memory = secrets_loader_memory
  @gc_compact = gc_compact
  @gc_stat = gc_stat
  @fallback_s3_bucket = fallback_s3_bucket
end

Instance Attribute Details

#appconfig_clientObject

Returns the value of attribute appconfig_client.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def appconfig_client
  @appconfig_client
end

#applied_profilesObject

Returns the value of attribute applied_profiles.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def applied_profiles
  @applied_profiles
end

#applying_profileObject

Returns the value of attribute applying_profile.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def applying_profile
  @applying_profile
end

#argvObject

Returns the value of attribute argv.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def argv
  @argv
end

#client_idObject

Returns the value of attribute client_id.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def client_id
  @client_id
end

#compiled_templatesObject

Returns the value of attribute compiled_templates.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def compiled_templates
  @compiled_templates
end

#configuration_directoryObject

Returns the value of attribute configuration_directory.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def configuration_directory
  @configuration_directory
end

#dependenciesObject

Returns the value of attribute dependencies.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def dependencies
  @dependencies
end

#early_exitObject

Returns the value of attribute early_exit.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def early_exit
  @early_exit
end

#envObject

Returns the value of attribute env.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def env
  @env
end

#fallback_s3_bucketObject

Returns the value of attribute fallback_s3_bucket.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def fallback_s3_bucket
  @fallback_s3_bucket
end

#gc_compactObject

Returns the value of attribute gc_compact.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def gc_compact
  @gc_compact
end

#gc_statObject

Returns the value of attribute gc_stat.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def gc_stat
  @gc_stat
end

#generated_templatesObject

Returns the value of attribute generated_templates.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def generated_templates
  @generated_templates
end

#last_refresh_timeObject

Returns the value of attribute last_refresh_time.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def last_refresh_time
  @last_refresh_time
end

#logs_directoryObject

Returns the value of attribute logs_directory.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def logs_directory
  @logs_directory
end

#next_stateObject

Returns the value of attribute next_state.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def next_state
  @next_state
end

#profile_defsObject

Returns the value of attribute profile_defs.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def profile_defs
  @profile_defs
end

#profiles_to_applyObject

Returns the value of attribute profiles_to_apply.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def profiles_to_apply
  @profiles_to_apply
end

#refresh_intervalObject

Returns the value of attribute refresh_interval.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def refresh_interval
  @refresh_interval
end

#regionObject

Returns the value of attribute region.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def region
  @region
end

#retries_leftObject

Returns the value of attribute retries_left.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def retries_left
  @retries_left
end

#retry_countObject

Returns the value of attribute retry_count.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def retry_count
  @retry_count
end

#retry_waitObject

Returns the value of attribute retry_wait.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def retry_wait
  @retry_wait
end

#run_countObject

Returns the value of attribute run_count.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def run_count
  @run_count
end

#runtime_directoryObject

Returns the value of attribute runtime_directory.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def runtime_directory
  @runtime_directory
end

#s3_clientObject

Returns the value of attribute s3_client.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def s3_client
  @s3_client
end

#secrets_loader_memoryObject

Returns the value of attribute secrets_loader_memory.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def secrets_loader_memory
  @secrets_loader_memory
end

#secretsmanager_clientObject

Returns the value of attribute secretsmanager_client.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def secretsmanager_client
  @secretsmanager_client
end

#service_defsObject

Returns the value of attribute service_defs.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def service_defs
  @service_defs
end

#services_to_reloadObject

Returns the value of attribute services_to_reload.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def services_to_reload
  @services_to_reload
end

#systemd_interfaceObject

Returns the value of attribute systemd_interface.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def systemd_interface
  @systemd_interface
end

#template_defsObject

Returns the value of attribute template_defs.



22
23
24
# File 'lib/config_o_mat/configurator/memory.rb', line 22

def template_defs
  @template_defs
end