class StackedConfig::Layers::GlobalLayer
Public Instance Methods
perform_substitutions(path_part)
click to toggle source
# File lib/stacked_config/layers/global_layer.rb, line 13 def perform_substitutions(path_part) res = path_part.dup res.gsub! '##SYSTEM_CONFIG_ROOT##', system_config_root exec_name = manager.nil? ? StackedConfig::Orchestrator.default_config_file_base_name : manager.config_file_base_name res.gsub! '##PROGRAM_NAME##', exec_name res end
possible_sources()
click to toggle source
# File lib/stacked_config/layers/global_layer.rb, line 5 def possible_sources [ ['##SYSTEM_CONFIG_ROOT##', '##PROGRAM_NAME##.##EXTENSION##' ], ['##SYSTEM_CONFIG_ROOT##', '##PROGRAM_NAME##', 'config.##EXTENSION##' ], ['##SYSTEM_CONFIG_ROOT##', '##PROGRAM_NAME##', '##PROGRAM_NAME##.##EXTENSION##' ] ] end