Sha256: a6c2f7b65d71f0dd45e45b03496d91c86d4dc6bcdf77ba06c0e315318a28c6d3

Contents?: true

Size: 316 Bytes

Versions: 2

Compression:

Stored size: 316 Bytes

Contents

module PostRunner

  class RuntimeConfig

    def initialize
      @settings = {}
      @settings['data_dir'] = File.join(ENV['HOME'], '.postrunner')
      @settings['fit_dir'] = File.join(@settings['data_dir'], 'fit')
    end

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

  end

  Config = RuntimeConfig.new

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
postrunner-0.0.2 lib/postrunner/RuntimeConfig.rb
postrunner-0.0.1 lib/postrunner/RuntimeConfig.rb