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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ecs_compose/ecs.rb +10 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a9daa7161cc02824fea6a7dd8a11cb874528bfa
4
- data.tar.gz: 4f0edf438ae1ad52437ee978aed4294d069aa29b
3
+ metadata.gz: 2c6c68601db812a4cdc0c0fafd2f20206e2ccf10
4
+ data.tar.gz: a8b0a3ce5e1b5433aad0e51a477cb3eba6408c5a
5
5
  SHA512:
6
- metadata.gz: a0a706e813b01275ceef7c56f1389e680a3c311f86ad14f823d6fccd59cc7b8f6c3d0648ad2a29ea7f7dc9df8267c796ef500cb3279fc826f434c42e47d9c9b7
7
- data.tar.gz: 4159b596a5a8662bb02cd4f7005225879382e56481664ca992c45d7b5bb44d5660328df95baf0f2bc15d43478a8825b68f9c05b7cc19d0842da446717feaa4f7
6
+ metadata.gz: ae38e5f22c66769ff62ef4985201aabeb9d0ba51cab7a08487c9d475d3262a59b7dfa859622d232b639d2458949522beb02fbc5a6347119f3a565e10f73dca18
7
+ data.tar.gz: 073f817090d40185354c648fa19a643ba0afbe269e4a8a395c0439789939625995c6f5acd4df9443a9993db0aae36734cd860f1c0e772d363c98d8e249ceb317
@@ -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
- run("describe-services",
100
- "--cluster", cluster,
101
- "--services", *services)
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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecs_compose
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre17
4
+ version: 0.1.0.pre19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Kidd