aide 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aide/service.rb +6 -0
- data/lib/aide/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e52cce62dc2b4415eaee74c800c470c0ec5d6f94
|
4
|
+
data.tar.gz: 4053d4cb04ba6e3409a14b1d55658945e685b2a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7204144a00c4c96c371bed31d76622a58fdf99fe49fbf8eb99b99a0936cc33aef9d399fc1f056bbbb7e3f1af60f1d11965c4830ec8f5d3db73c5292f3084420
|
7
|
+
data.tar.gz: d5029c009281aa7cf2db7a7ce7e69b48192d8eaeb5cab2b5fbe35be0a601ac01876c7b4e939254814796acd365193f1f4731ae731125e1b6e5a17ad11a316b7e
|
data/lib/aide/service.rb
CHANGED
@@ -9,6 +9,8 @@ module Aide
|
|
9
9
|
delegate :Address, :ServiceAddress, :ServicePort, to: :service
|
10
10
|
|
11
11
|
def url
|
12
|
+
return if empty?
|
13
|
+
|
12
14
|
template = Aide.config.get_service(name: name)[:url]
|
13
15
|
return if template.nil?
|
14
16
|
|
@@ -26,6 +28,10 @@ module Aide
|
|
26
28
|
end
|
27
29
|
end
|
28
30
|
|
31
|
+
def empty?
|
32
|
+
service.to_h.empty?
|
33
|
+
end
|
34
|
+
|
29
35
|
private
|
30
36
|
def service
|
31
37
|
@service ||= Diplomat::Service.get(name)
|
data/lib/aide/version.rb
CHANGED