Class: BenchTool::AppConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/benchtool/app-config.rb

Constant Summary collapse

CONFIG_DIR =
File.expand_path('./config')
CONFIG_FILE =
'configuration.yml'
CONFIG_PATH =
File.join(CONFIG_DIR, CONFIG_FILE)
APP_CONFIG_DIR =
File.expand_path(File.dirname(__FILE__))

Instance Method Summary collapse

Constructor Details

#initializeAppConfig

Returns a new instance of AppConfig.



9
10
11
# File 'lib/benchtool/app-config.rb', line 9

def initialize
  @options ||= fetch
end

Instance Method Details

#to_hashObject

Return config as hash



14
15
16
# File 'lib/benchtool/app-config.rb', line 14

def to_hash
  @options
end