docker-compose 0.4.3 → 0.5.0
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/docker/compose/session.rb +17 -1
- 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: f68e64a415d160c3d7dceb0ee8276efe6ed99698
|
4
|
+
data.tar.gz: 4c1ea3f627a72012c2141b289fd6e5094fcb6194
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07fa36e16495693c7c1866728f3ee303c010ee5408ac50bc69048d36f1fdc13861483e30b8e69c842474ccc94dfd12768431d32d0335c351524d71e140a907f8
|
7
|
+
data.tar.gz: 708a6502e5a4b335f840418a140b0d41da2cc3434d3fdd71ba20f1ae3d50aec9df351ee6a14370fc91bec84f7f591d3165e10dee79185c8e245dd86cee74dfcc
|
@@ -31,7 +31,7 @@ module Docker::Compose
|
|
31
31
|
true
|
32
32
|
end
|
33
33
|
|
34
|
-
# Idempotently
|
34
|
+
# Idempotently up the given services in the project.
|
35
35
|
# @param [Array] services list of String service names to run
|
36
36
|
# @param [Boolean] detached if true, to start services in the background;
|
37
37
|
# otherwise, monitor logs in the foreground and shutdown on Ctrl+C
|
@@ -50,6 +50,22 @@ module Docker::Compose
|
|
50
50
|
true
|
51
51
|
end
|
52
52
|
|
53
|
+
# Idempotently run a service in the project.
|
54
|
+
# @param [String] service name to run
|
55
|
+
# @param [String] cmd command statement to run
|
56
|
+
# @param [Boolean] detached if true, to start services in the background;
|
57
|
+
# otherwise, monitor logs in the foreground and shutdown on Ctrl+C
|
58
|
+
# @param [Boolean] no_deps if true, just run specified services without
|
59
|
+
# running the services that they depend on
|
60
|
+
# @param [Array] env_vars a list of environment variables (see: -e flag)
|
61
|
+
# @param [Boolean] rm remove the container when done
|
62
|
+
# @raise [Error] if command fails
|
63
|
+
def run(service, *cmd, detached:false, no_deps:false, env_vars:[], rm:false)
|
64
|
+
formated_vars = env_vars.map{|v| {e: v}}
|
65
|
+
run!('run',
|
66
|
+
{d:detached, no_deps:no_deps, rm:rm}, *formated_vars, service, cmd)
|
67
|
+
end
|
68
|
+
|
53
69
|
# Stop running services.
|
54
70
|
# @param [Array] services list of String service names to stop
|
55
71
|
# @param [Integer] timeout how long to wait for each service to stop
|
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: 0.
|
4
|
+
version: 0.5.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: 2016-03-
|
11
|
+
date: 2016-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backticks
|