Module: Fiveruns::Tuneup::Urls
- Included in:
- Fiveruns::Tuneup
- Defined in:
- lib/fiveruns/tuneup/urls.rb
Instance Method Summary collapse
Instance Method Details
#collector_url ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/fiveruns/tuneup/urls.rb', line 5 def collector_url @collector_url ||= begin url = ENV['TUNEUP_COLLECTOR'] || 'https://tuneup-collector.fiveruns.com' url = "http://#{url}" unless url =~ /^http/ url end end |
#frontend_url ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/fiveruns/tuneup/urls.rb', line 13 def frontend_url @frontend_url ||= begin url = ENV['TUNEUP_FRONTEND'] || 'https://tuneup.fiveruns.com' url = "http://#{url}" unless url =~ /^http/ url end end |