Class: Sfn::Callback::ParametersInfrastructure
- Inherits:
-
Sfn::Callback
- Object
- Sfn::Callback
- Sfn::Callback::ParametersInfrastructure
- Includes:
- Bogo::Memoization, Utils::JSON, SfnParameters::Utils
- Defined in:
- lib/sfn-parameters/infrastructure.rb
Overview
Auto load stack parameters for infrastructure pattern
Direct Known Subclasses
Constant Summary collapse
- VALID_EXTENSIONS =
Valid file extensions for configuration file
[".rb", ".xml", ".json", ".yaml", ".yml"]
Instance Method Summary collapse
-
#after_config_update(*_) ⇒ NilClass
(also: #after_config)
Update configuration after configuration is loaded.
Methods included from SfnParameters::Utils
#lock_content, #unlock_content
Instance Method Details
#after_config_update(*_) ⇒ NilClass Also known as: after_config
Update configuration after configuration is loaded
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/sfn-parameters/infrastructure.rb', line 17 def after_config_update(*_) config[:parameters] ||= Smash.new config[:compile_parameters] ||= Smash.new config[:apply_stack] ||= [] config[:apply_mapping] ||= Smash.new stack_name = arguments.first content = load_file_for(stack_name) process_information_hash(content, []) nil end |