cf_light_api 3.0.0.pre2 → 3.0.0.pre3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cf_light_api/worker.rb +7 -4
- 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: d0c95e6ed6cedfce37ef86850528482dce2e33f8
|
|
4
|
+
data.tar.gz: 426a60e143da87bb09a4cf0524e30a42d16bd77f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d749a9719cb2f06e03b2906de32928c1670d1f9891348389751e1540f7d2d75c113629f62f25e04ae05f8f6c402c685582219d9d11e55e30026cc3edfb5c90c
|
|
7
|
+
data.tar.gz: 1cbb1e6daaf1e470f8169815a6c77ae796b7d20069698e9b08272cdd7ddef62456a88ebee03c9861be664ab673f7cf22d2ae12bc89feb7b365b201445aa5808f
|
data/lib/cf_light_api/worker.rb
CHANGED
|
@@ -347,10 +347,13 @@ class CFLightAPIWorker
|
|
|
347
347
|
v1_document['routes'] = routes
|
|
348
348
|
v2_document['routes'] = routes
|
|
349
349
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
350
|
+
# Try to gather app instance stats, unless the app is stopped...
|
|
351
|
+
unless app['entity']['state'] == 'STOPPED'
|
|
352
|
+
response = cf_rest("/v2/apps/#{app['metadata']['guid']}/stats")
|
|
353
|
+
instances = response.first.map{|key,value|value}
|
|
354
|
+
v1_document['instances'] = instances
|
|
355
|
+
v2_document['instances'] = instances
|
|
356
|
+
end
|
|
354
357
|
|
|
355
358
|
running = false
|
|
356
359
|
if instances.any?
|