class StackedConfig::Layers::SystemLayer
Constants
- SYSTEM_CONFIG_ROOT
Public Class Methods
system_config_root()
click to toggle source
# File lib/stacked_config/layers/system_layer.rb, line 11 def self.system_config_root SYSTEM_CONFIG_ROOT[os_flavour] end
Public Instance Methods
perform_substitutions(path_part)
click to toggle source
# File lib/stacked_config/layers/system_layer.rb, line 27 def perform_substitutions path_part res = path_part.dup res.gsub! '##SYSTEM_CONFIG_ROOT##', system_config_root res end
possible_sources()
click to toggle source
# File lib/stacked_config/layers/system_layer.rb, line 20 def possible_sources [ ['##SYSTEM_CONFIG_ROOT##', 'stacked_config.##EXTENSION##' ], ['##SYSTEM_CONFIG_ROOT##', 'stacked_config', 'config.##EXTENSION##' ] ] end
system_config_root()
click to toggle source
# File lib/stacked_config/layers/system_layer.rb, line 15 def system_config_root self.class.system_config_root end