Module: Dashboarder::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/dashboarder/config.rb

Instance Method Summary collapse

Instance Method Details

#env!(key) ⇒ Object



5
6
7
# File 'lib/dashboarder/config.rb', line 5

def env!(key)
  ENV[key] || raise("#{key} not found in ENV")
end

#librato_api_urlObject



9
10
11
# File 'lib/dashboarder/config.rb', line 9

def librato_api_url
  ENV['LIBRATO_API_URL']
end

#librato_emailObject



17
18
19
# File 'lib/dashboarder/config.rb', line 17

def librato_email
  env!('LIBRATO_EMAIL')
end

#librato_keyObject



13
14
15
# File 'lib/dashboarder/config.rb', line 13

def librato_key
  env!('LIBRATO_KEY')
end