module Pangea::Config

def config

- Keys in ~/.config/pangea/config.yml override keys in /etc/pangea/config.yml
- Keys in pangea.yml override keys in ~/.config/pangea/config.yml
The configuration is lazily loaded and deep-merged so that:
Public: Returns a memoized configuration Hash.
def config
  @config ||= load_config
end

def load_config

Loads and deep-merges available YAML configuration files.
def load_config
  merged = {}
  CONFIG_PATHS.each do |file_path|
    if File.exist?(file_path)
      data = YAML.load_file(file_path)
      merged = Pangea::Utils.deep_merge(merged, data) if data.is_a?(Hash)
    end
  end
  merged
end