Class: PostRunner::RuntimeConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/postrunner/RuntimeConfig.rb

Instance Method Summary collapse

Constructor Details

#initializeRuntimeConfig

Returns a new instance of RuntimeConfig.



5
6
7
8
9
# File 'lib/postrunner/RuntimeConfig.rb', line 5

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

Instance Method Details

#[](key) ⇒ Object



11
12
13
# File 'lib/postrunner/RuntimeConfig.rb', line 11

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