Module: Rox::Core::Environment

Defined in:
lib/rox/core/consts/environment.rb

Class Method Summary collapse

Class Method Details

.analytics_pathObject



30
31
32
33
34
35
36
37
38
39
# File 'lib/rox/core/consts/environment.rb', line 30

def self.analytics_path
  case ENV['ROLLOUT_MODE']
  when 'QA'
    'https://qaanalytic.rollout.io'
  when 'LOCAL'
    'http://127.0.0.1:8787'
  else
    'https://analytic.rollout.io'
  end
end

.api_pathObject



19
20
21
22
23
24
25
26
27
28
# File 'lib/rox/core/consts/environment.rb', line 19

def self.api_path
  case ENV['ROLLOUT_MODE']
  when 'QA'
    'https://qax.rollout.io/device/request_configuration'
  when 'LOCAL'
    'http://127.0.0.1:8557/device/request_configuration'
  else
    'https://x-api.rollout.io/device/request_configuration'
  end
end

.cdn_pathObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/rox/core/consts/environment.rb', line 8

def self.cdn_path
  case ENV['ROLLOUT_MODE']
  when 'QA'
    'https://s3.amazonaws.com/qa-rox-conf.rollout.io/v1/qa'
  when 'LOCAL'
    'https://s3.amazonaws.com/qa-rox-conf.rollout.io/v1/development'
  else
    'https://s3.amazonaws.com/rox-conf.rollout.io/v1/production'
  end
end

.roxy_internal_pathObject



4
5
6
# File 'lib/rox/core/consts/environment.rb', line 4

def self.roxy_internal_path
  'device/request_configuration'
end