consul_bridge 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/consul_bridge/download_masters.rb +2 -1
- data/lib/consul_bridge/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: c6469f568295acf5e72c1104633560d8855b37ab
|
4
|
+
data.tar.gz: 987d91802152806c539f512b44f1bf0f44792627
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af4eb332b0ecdda47026cd2e92bf59963c9c9c32e29b4801fa71cb0eba14a6f2ad75c3c0f09c7faae236efd2042368d8f3ab8806980eacf466f7424b42d8cde4
|
7
|
+
data.tar.gz: f7933f4a64aa905939114aa24768e85e9d9668569d952a6638eb1a5a32fac5c778720fd4fedf0742e9e6d78673a984e0b3f1bc131276ad4e53b86f1f491671d2
|
@@ -17,8 +17,9 @@ module ConsulBridge
|
|
17
17
|
storage = Fog::Storage.new provider: 'AWS', use_iam_profile: true
|
18
18
|
bucket = storage.directories.get(self.bucket)
|
19
19
|
bucket.files.each do |file|
|
20
|
-
master_ips << file.key
|
20
|
+
master_ips << [file.last_modified, file.key]
|
21
21
|
end
|
22
|
+
master_ips = master_ips.sort.reverse.collect { |file| file[1] }
|
22
23
|
|
23
24
|
OpenStruct.new(
|
24
25
|
master_ips: master_ips
|