@@ -81,16 +81,16 @@ def sync(params)
81
81
82
82
private
83
83
def get_default_region_hosts ( region = 'us' )
84
- host = "#{ Contentstack ::Region ::PROTOCOL } #{ Contentstack ::Region ::DEFAULT_HOST } " #set default host if region is nil
84
+ host = "#{ Contentstack ::Host ::PROTOCOL } #{ Contentstack ::Host ::DEFAULT_HOST } " #set default host if region is nil
85
85
case region
86
86
when "us"
87
- host = "#{ Contentstack ::Region ::PROTOCOL } #{ Contentstack ::Region ::DEFAULT_HOST } "
87
+ host = "#{ Contentstack ::Host ::PROTOCOL } #{ Contentstack ::Host ::DEFAULT_HOST } "
88
88
when "eu"
89
- host = "#{ Contentstack ::Region ::PROTOCOL } eu-cdn.#{ Contentstack ::Region ::HOST } "
89
+ host = "#{ Contentstack ::Host ::PROTOCOL } eu-cdn.#{ Contentstack ::Host ::HOST } "
90
90
when "azure-na"
91
- host = "#{ Contentstack ::Region ::PROTOCOL } azure-na-cdn.#{ Contentstack ::Region ::HOST } "
91
+ host = "#{ Contentstack ::Host ::PROTOCOL } azure-na-cdn.#{ Contentstack ::Host ::HOST } "
92
92
when "azure-eu"
93
- host = "#{ Contentstack ::Region ::PROTOCOL } azure-eu-cdn.#{ Contentstack ::Region ::HOST } "
93
+ host = "#{ Contentstack ::Host ::PROTOCOL } azure-eu-cdn.#{ Contentstack ::Host ::HOST } "
94
94
end
95
95
host
96
96
end
@@ -102,19 +102,19 @@ def get_host_by_region(region, options)
102
102
custom_host = options [ :host ]
103
103
case region
104
104
when "us"
105
- host = "#{ Contentstack ::Region ::PROTOCOL } cdn.#{ custom_host } "
105
+ host = "#{ Contentstack ::Host ::PROTOCOL } cdn.#{ custom_host } "
106
106
when "eu"
107
- host = "#{ Contentstack ::Region ::PROTOCOL } eu-cdn.#{ custom_host } "
107
+ host = "#{ Contentstack ::Host ::PROTOCOL } eu-cdn.#{ custom_host } "
108
108
when "azure-na"
109
- host = "#{ Contentstack ::Region ::PROTOCOL } azure-na-cdn.#{ custom_host } "
109
+ host = "#{ Contentstack ::Host ::PROTOCOL } azure-na-cdn.#{ custom_host } "
110
110
when "azure-eu"
111
- host = "#{ Contentstack ::Region ::PROTOCOL } azure-eu-cdn.#{ custom_host } "
111
+ host = "#{ Contentstack ::Host ::PROTOCOL } azure-eu-cdn.#{ custom_host } "
112
112
end
113
113
elsif options [ :host ] . present? && region . empty?
114
114
custom_host = options [ :host ]
115
- host = "#{ Contentstack ::Region ::PROTOCOL } cdn.#{ custom_host } "
115
+ host = "#{ Contentstack ::Host ::PROTOCOL } cdn.#{ custom_host } "
116
116
else
117
- host = "#{ Contentstack ::Region ::PROTOCOL } #{ Contentstack ::Region ::DEFAULT_HOST } " #set default host if region and host is empty
117
+ host = "#{ Contentstack ::Host ::PROTOCOL } #{ Contentstack ::Host ::DEFAULT_HOST } " #set default host if region and host is empty
118
118
end
119
119
host
120
120
end
0 commit comments