Module: Rox::Core::Environment
- Defined in:
- lib/rox/core/consts/environment.rb
Class Method Summary collapse
- .analytics_path ⇒ Object
- .api_path ⇒ Object
- .cdn_path ⇒ Object
- .notifications_path ⇒ Object
- .reset(rox_options = nil) ⇒ Object
- .roxy_internal_path ⇒ Object
- .state_api_path ⇒ Object
- .state_cdn_path ⇒ Object
Class Method Details
.analytics_path ⇒ Object
45 46 47 |
# File 'lib/rox/core/consts/environment.rb', line 45 def self.analytics_path @analytics_path end |
.api_path ⇒ Object
33 34 35 |
# File 'lib/rox/core/consts/environment.rb', line 33 def self.api_path @api_path end |
.cdn_path ⇒ Object
29 30 31 |
# File 'lib/rox/core/consts/environment.rb', line 29 def self.cdn_path @cdn_path end |
.notifications_path ⇒ Object
49 50 51 |
# File 'lib/rox/core/consts/environment.rb', line 49 def self.notifications_path @notifications_path end |
.reset(rox_options = nil) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/rox/core/consts/environment.rb', line 4 def self.reset( = nil) @roxy_internal_path = 'device/request_configuration' if !&..nil? @cdn_path = &.&.get_config_cloud_endpoint @api_path = &.&.get_config_api_endpoint @state_cdn_path = &.&.send_state_cloud_endpoint @state_api_path = &.&.send_state_api_endpoint @analytics_path = &.&.analytics_endpoint @notifications_path = &.&.push_notification_endpoint else case ENV['ROLLOUT_MODE'] when 'QA' setQA when 'LOCAL' setLOCAL else setDefault() end end end |
.roxy_internal_path ⇒ Object
25 26 27 |
# File 'lib/rox/core/consts/environment.rb', line 25 def self.roxy_internal_path @roxy_internal_path end |
.state_api_path ⇒ Object
41 42 43 |
# File 'lib/rox/core/consts/environment.rb', line 41 def self.state_api_path @state_api_path end |
.state_cdn_path ⇒ Object
37 38 39 |
# File 'lib/rox/core/consts/environment.rb', line 37 def self.state_cdn_path @state_cdn_path end |