Sha256: 1322ef507cc00a49c62e5d4907c3e567615e76c2bfca4b6c7073111fc5bbc59a
Contents?: true
Size: 556 Bytes
Versions: 17
Compression:
Stored size: 556 Bytes
Contents
require 'yaml' module Prefab class YAMLConfigParser LOG = Prefab::InternalLogger.new(self) 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) LOG.info "Load #{@file}" YAML.load_file(@file) else LOG.info "No file #{@file}" {} end end end end
Version data entries
17 entries across 17 versions & 1 rubygems