Sha256: c45dcb7eca364fed33c7d40404ac5c11d0c643254965075d5e83c140b31f1d16

Contents?: true

Size: 363 Bytes

Versions: 2

Compression:

Stored size: 363 Bytes

Contents

module Rallycat
  class Config
    def initialize
      begin
        @config = YAML.load_file File.expand_path('~/.rallycatrc')
      rescue StandardError
        message = "Your rallycat config file is missing or invalid. See 'rallycat help'."
        raise InvalidConfigError.new message
      end
    end

    def [](key)
      @config[key]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rallycat-0.4.1 lib/rallycat/config.rb
rallycat-0.4.0 lib/rallycat/config.rb