Sha256: 9b3ac100e36198c095ff52061efc7285dff21c65ec1ff708c1f01c490b5b6416

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

require 'YAML'

module PairingMatrix
  class ConfigReader
    def initialize(config_file)
      @config_file = config_file
    end

    def config
      raw_config = YAML::load_file @config_file
      PairingMatrix::Config.new(
          raw_config['repos'],
          raw_config['authors_regex'],
          raw_config['github_access_token'],
          raw_config['github_repos']
      )
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pairing_matrix-1.0 lib/pairing_matrix/config/config_reader.rb