module Rox::Core::Environment
Public Class Methods
analytics_path(analytics_url = 'https://analytic.rollout.io')
click to toggle source
# File lib/rox/core/consts/environment.rb, line 54 def self.analytics_path(analytics_url = 'https://analytic.rollout.io') case ENV['ROLLOUT_MODE'] when 'QA' 'https://qaanalytic.rollout.io' when 'LOCAL' 'http://127.0.0.1:8787' else analytics_url end end
api_path(api_url = nil)
click to toggle source
# File lib/rox/core/consts/environment.rb, line 19 def self.api_path(api_url = nil) case ENV['ROLLOUT_MODE'] when 'QA' 'https://qa-api.rollout.io/device/get_configuration' when 'LOCAL' 'http://127.0.0.1:8557/device/get_configuration' else api_url ||= 'https://x-api.rollout.io' "#{api_url}/device/get_configuration" end end
cdn_path()
click to toggle source
# File lib/rox/core/consts/environment.rb, line 8 def self.cdn_path case ENV['ROLLOUT_MODE'] when 'QA' 'https://qa-conf.rollout.io' when 'LOCAL' 'https://development-conf.rollout.io' else 'https://conf.rollout.io' end end
notifications_path()
click to toggle source
# File lib/rox/core/consts/environment.rb, line 65 def self.notifications_path case ENV['ROLLOUT_MODE'] when 'QA' 'https://qax-push.rollout.io/sse' when 'LOCAL' 'http://127.0.0.1:8887/sse' else 'https://push.rollout.io/sse' end end
roxy_internal_path()
click to toggle source
# File lib/rox/core/consts/environment.rb, line 4 def self.roxy_internal_path 'device/request_configuration' end
state_api_path(api_url = nil)
click to toggle source
# File lib/rox/core/consts/environment.rb, line 42 def self.state_api_path(api_url = nil) case ENV['ROLLOUT_MODE'] when 'QA' 'https://qa-api.rollout.io/device/update_state_store' when 'LOCAL' 'http://127.0.0.1:8557/device/update_state_store' else api_url ||= 'https://x-api.rollout.io' "#{api_url}/device/update_state_store" end end
state_cdn_path()
click to toggle source
# File lib/rox/core/consts/environment.rb, line 31 def self.state_cdn_path case ENV['ROLLOUT_MODE'] when 'QA' 'https://qa-statestore.rollout.io' when 'LOCAL' 'https://development-statestore.rollout.io' else 'https://statestore.rollout.io' end end