Class: Sfn::Callback::ParametersInfrastructure
- Inherits:
-
Sfn::Callback
- Object
- Sfn::Callback
- Sfn::Callback::ParametersInfrastructure
- Defined in:
- lib/sfn-parameters/infrastructure.rb
Overview
Auto load stack parameters for infrastructure pattern
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_create)
Update configuration after configuration is loaded.
Instance Method Details
#after_config_update(*_) ⇒ NilClass Also known as: after_config_create
Update configuration after configuration is loaded
14 15 16 17 18 19 20 21 22 |
# File 'lib/sfn-parameters/infrastructure.rb', line 14 def after_config_update(*_) config[:parameters] ||= Smash.new config[:compile_parameters] ||= Smash.new config[:apply_stack] ||= [] stack_name = arguments.first content = load_file_for(stack_name) process_information_hash(content, []) nil end |