api_six_client 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/api_six_client/base_int.rb +2 -5
- data/lib/api_six_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49a37f5d9f10386f37c24266e8a4e80025af81771e8fb02d6f7eba220221f846
|
4
|
+
data.tar.gz: 2c9cfafba5bf45e23800509ad628e26d15dbd45e75306024f333acf86cf70ee0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fac9892134780019a2782fd303a84710b3f2a047a150adf266acf7828a340a2f6e064e0bba3d4fa0d9f78e450d495f5c68eb1be2f847e08a5c835175a0d7723b
|
7
|
+
data.tar.gz: ba8a4fa855b1e29f49110bc1aff6cd1d3321862ec3bd535888c5f6fb7996f66e20a267eba08422f1a6c24f46b8b8fa0e27140f9b2dcb2a8ba92be596f75f9f8b
|
data/Gemfile.lock
CHANGED
@@ -2,14 +2,12 @@
|
|
2
2
|
|
3
3
|
module ApiSixClient
|
4
4
|
class BaseInt < Base
|
5
|
-
SERVICES_OUTSIDE_K8S = %w[olc_int cad_int]
|
6
|
-
|
7
5
|
DEFAULT_INTRANET_MAPPING = ->(service_name) {
|
8
6
|
{ k8s_service: "http://#{service_name.gsub('_int', '-api')}", api_int_path: 'api_int'}
|
9
7
|
}
|
10
8
|
INTRANET_MAPPING = {
|
11
|
-
|
12
|
-
|
9
|
+
'olc_int' => { k8s_service: 'http://core-web:3000', api_int_path: 'api_hiden' },
|
10
|
+
'cad_int' => { k8s_service: 'http://core-web:3000', api_int_path: 'api_int' },
|
13
11
|
'cuna_int' => { k8s_service: 'http://cuna-api:3000', api_int_path: 'api_int' },
|
14
12
|
'val' => { k8s_service: 'http://val:8000', api_int_path: 'api' },
|
15
13
|
'coma_int' => { k8s_service: 'http://coma-api:3000', api_int_path: 'api_int' },
|
@@ -48,7 +46,6 @@ module ApiSixClient
|
|
48
46
|
private
|
49
47
|
def current_service
|
50
48
|
service_name = self.class.name.demodulize.underscore
|
51
|
-
return nil if service_name.in?(SERVICES_OUTSIDE_K8S)
|
52
49
|
|
53
50
|
INTRANET_MAPPING[service_name] || DEFAULT_INTRANET_MAPPING.call(service_name)
|
54
51
|
end
|