Module: Dashboarder::Config
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_url ⇒ Object
9 10 11 |
# File 'lib/dashboarder/config.rb', line 9 def librato_api_url ENV['LIBRATO_API_URL'] end |
#librato_email ⇒ Object
17 18 19 |
# File 'lib/dashboarder/config.rb', line 17 def librato_email env!('LIBRATO_EMAIL') end |
#librato_key ⇒ Object
13 14 15 |
# File 'lib/dashboarder/config.rb', line 13 def librato_key env!('LIBRATO_KEY') end |