Sha256: 8faac93fa449ae2b68ccad7299b33b2b2c6bed8e3e25b721eca56520b608c406
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
require 'yaml' require_relative 'config' require_relative 'local_repos' require_relative 'remote_repos' module PairingMatrix class ConfigReader def initialize(config_file) @config_file = config_file end def config raw_config = YAML::load_file @config_file author_regex = raw_config['authors_regex'] PairingMatrix::Config.new( PairingMatrix::LocalRepos.create_from(author_regex, raw_config['local']), PairingMatrix::RemoteRepos.create_from(author_regex, raw_config['gitlab']), PairingMatrix::RemoteRepos.create_from(author_regex, raw_config['github']) ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pairing_matrix-3.0.0 | lib/pairing_matrix/config/config_reader.rb |