ecs_compose 0.1.0.pre17 → 0.1.0.pre19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ecs_compose/ecs.rb +10 -3
- 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: 2c6c68601db812a4cdc0c0fafd2f20206e2ccf10
|
4
|
+
data.tar.gz: a8b0a3ce5e1b5433aad0e51a477cb3eba6408c5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae38e5f22c66769ff62ef4985201aabeb9d0ba51cab7a08487c9d475d3262a59b7dfa859622d232b639d2458949522beb02fbc5a6347119f3a565e10f73dca18
|
7
|
+
data.tar.gz: 073f817090d40185354c648fa19a643ba0afbe269e4a8a395c0439789939625995c6f5acd4df9443a9993db0aae36734cd860f1c0e772d363c98d8e249ceb317
|
data/lib/ecs_compose/ecs.rb
CHANGED
@@ -96,9 +96,16 @@ module EcsCompose
|
|
96
96
|
|
97
97
|
# Describe a set of services as JSON.
|
98
98
|
def self.describe_services(cluster, services)
|
99
|
-
|
100
|
-
|
101
|
-
|
99
|
+
# describe-services fails if asked to wait on more than 10 services.
|
100
|
+
services.each_slice(10).map do |slice|
|
101
|
+
run("describe-services",
|
102
|
+
"--cluster", cluster,
|
103
|
+
"--services", *slice)
|
104
|
+
end.flatten(1).inject({"failures" => [], "services" => []}) do |collected, new|
|
105
|
+
collected["failures"] += new["failures"]
|
106
|
+
collected["services"] += new["services"]
|
107
|
+
collected
|
108
|
+
end
|
102
109
|
end
|
103
110
|
|
104
111
|
# Describe a set of tasks as JSON.
|