docker-compose 1.0.4 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9be484af8c4f5250961c4df03f04aaceebd7fd2
4
- data.tar.gz: a16663183f5a512c9344ad2110fba19179f1a339
3
+ metadata.gz: d2c9409ad4a71952fcc96bcaec61e18cfd37ff45
4
+ data.tar.gz: a172e5b93540a6f12d7b7b701ef5091b616db739
5
5
  SHA512:
6
- metadata.gz: b6eb3ed59f86318bbced3d41196924d7c1588f65d367dbbc4f9bd03d4b9524a53d599ba34b142e0b2c779cb94b74c0ecd8657bcfec8d77f43c67872b9e303997
7
- data.tar.gz: 8998e342c4af0c810c073cd49dab423e451ad95ed9471e58c4687181a3a59f5e50227ee6a118bbba367584fa8c5d053f59697e369101772644ce413378958fdf
6
+ metadata.gz: 91490526a3237fc1847c70277333ad4628ebd190f3a7be201946739902a158884d5176e80493abf4e68a215be5fb40c7880526fa600c006eb4d0f6d6353df11d
7
+ data.tar.gz: 14625c637f31bc5793c0c3beaab606544dd4a0f77dc374bfd8eae4ad4a3ff1f4f962990cdf6283940e65f30a312ad3987e7531f7127bb80d9110282cc7cc68ee
@@ -87,6 +87,15 @@ module Docker::Compose
87
87
  true
88
88
  end
89
89
 
90
+ # Idempotently scales the number of containers for given services in the project.
91
+ # @param [Hash] container_count per service, e.g. {web: 2, worker: 3}
92
+ # @param [Integer] timeout how long to wait for each service to scale
93
+ def scale(container_count, timeout: 10)
94
+ args = container_count.map {|service, count| "#{service}=#{count}"}
95
+ o = opts(timeout: [timeout, 10])
96
+ run!('scale', o, *args)
97
+ end
98
+
90
99
  # Take the stack down
91
100
  def down
92
101
  run!('down')
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Docker
3
3
  module Compose
4
- VERSION = '1.0.4'
4
+ VERSION = '1.1.0'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-compose
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Spataro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-23 00:00:00.000000000 Z
11
+ date: 2017-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backticks