docker-compose 1.1.1 → 1.1.2
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 +3 -2
- 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: fa9580eab5046b397f37ecc8d1287027a48994ee
|
4
|
+
data.tar.gz: 73d3395a26c69244f30a68f35aa7a5f2c8d641ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24222e86b8ca498f5800689b4e52e2abed409536087cbdb15c1a942d67c0032b77f4030f7e96c3d815e43e19bc4517883c2ed001cd51be78ae1c2c044e0708c5
|
7
|
+
data.tar.gz: c6ebb1f8e05a0da38ded2eea8b35d8fd8f134ba74503fead8e53a2d36319b3309c841e4aa9d59672907850855feddd5accf350ec10b820651c4320e9c14e983e
|
@@ -122,9 +122,10 @@ module Docker::Compose
|
|
122
122
|
# @param [Array] env a list of environment variables (see: -e flag)
|
123
123
|
# @param [Boolean] rm remove the container when done
|
124
124
|
# @param [Boolean] no_tty disable pseudo-tty allocation (see: -T flag)
|
125
|
+
# @param [String] user run as specified username or uid (see: -u flag)
|
125
126
|
# @raise [Error] if command fails
|
126
|
-
def run(service, *cmd, detached: false, no_deps: false, env: [], rm: false, no_tty: false)
|
127
|
-
o = opts(d: [detached, false], no_deps: [no_deps, false], env: [env, []], rm: [rm, false], T: [no_tty, false])
|
127
|
+
def run(service, *cmd, detached: false, no_deps: false, env: [], rm: false, no_tty: false, user: nil)
|
128
|
+
o = opts(d: [detached, false], no_deps: [no_deps, false], env: [env, []], rm: [rm, false], T: [no_tty, false], u: [user, nil])
|
128
129
|
env_params = env.map { |v| { e: v } }
|
129
130
|
run!('run', o, *env_params, service, cmd)
|
130
131
|
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.1.
|
4
|
+
version: 1.1.2
|
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-03-
|
11
|
+
date: 2017-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backticks
|