Sha256: 3642618a0bd40bba8a688c4309c84f532162949015425051bdb521cfbc780020
Contents?: true
Size: 568 Bytes
Versions: 22
Compression:
Stored size: 568 Bytes
Contents
require 'yaml' module Prefab class YAMLConfigParser def initialize(file, client) @file = file @client = client end def merge(config) yaml = load yaml.each do |k, v| config = Prefab::LocalConfigParser.parse(k, v, config, @file) end config end private def load if File.exist?(@file) @client.log_internal ::Logger::INFO, "Load #{@file}" YAML.load_file(@file) else @client.log_internal ::Logger::INFO, "No file #{@file}" {} end end end end
Version data entries
22 entries across 22 versions & 1 rubygems