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 +4 -4
- data/lib/docker/compose/session.rb +9 -0
- data/lib/docker/compose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2c9409ad4a71952fcc96bcaec61e18cfd37ff45
|
4
|
+
data.tar.gz: a172e5b93540a6f12d7b7b701ef5091b616db739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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')
|
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
|
+
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-
|
11
|
+
date: 2017-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backticks
|