Sha256: a562168414537fb1163c34df291a99b31d563ed67b05b7ae8b045eb4c85170cd

Contents?: true

Size: 294 Bytes

Versions: 3

Compression:

Stored size: 294 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'])
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pairing_matrix-0.1.2 lib/pairing_matrix/config/config_reader.rb
pairing_matrix-0.1.1 lib/pairing_matrix/config/config_reader.rb
pairing_matrix-0.1 lib/pairing_matrix/config/config_reader.rb