docker-compose 1.1.6 → 1.1.7

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: dded18c669ccada9ba7a479ad58243b6632fc2df
4
- data.tar.gz: 178a3fd6056d1c4297924bab87f0738a1b313729
3
+ metadata.gz: 81d2f61d0d87387d5ca2f36d9dc07e8b1b3de900
4
+ data.tar.gz: 5d526154e899384f28098b02d12c328776addc84
5
5
  SHA512:
6
- metadata.gz: b4ab18165f910079c6b81ad03c8a86b40b462951ef5c41562e5bab9aa7a454f1918a3c34f8060d2c5040a908a250970ad54f6d3de85467d4e910b4cb56d66f8a
7
- data.tar.gz: 4078a9574fcdef4da1aac4d1f43129c0643fb740d05d7a6345934a76c0fdcd1314f303c43f54f355cd5d1c329a95c279349fd070e00f5a1af3ef9ef318bf2c52
6
+ metadata.gz: 68e98feaf72b6089425e0c2a97bd2a6f2440287f0efff90852b64d39340a0fe3898e93c31f46a3cd3974635a3a76822ed90f9361e3e7aaa95e2ff5ec7fe96399
7
+ data.tar.gz: 112dfa9ff1ed29a69f44b96de5098f810a7d8a477ba41750fb30645c7dc983d32bb58849d5a29095c2b062caaac3ccb07d68bb65d0e8374ecc8484bbfb5c75e0
@@ -120,14 +120,16 @@ module Docker::Compose
120
120
  # @param [Boolean] no_deps if true, just run specified services without
121
121
  # running the services that they depend on
122
122
  # @param [Array] env a list of environment variables (see: -e flag)
123
+ # @param [Array] volumes a list of volumes to bind mount (see: -v flag)
123
124
  # @param [Boolean] rm remove the container when done
124
125
  # @param [Boolean] no_tty disable pseudo-tty allocation (see: -T flag)
125
126
  # @param [String] user run as specified username or uid (see: -u flag)
126
127
  # @raise [Error] if command fails
127
- def run(service, *cmd, detached: false, no_deps: false, env: [], rm: false, no_tty: false, user: nil)
128
+ def run(service, *cmd, detached: false, no_deps: false, volumes: [], env: [], rm: false, no_tty: false, user: nil)
128
129
  o = opts(d: [detached, false], no_deps: [no_deps, false], rm: [rm, false], T: [no_tty, false], u: [user, nil])
129
130
  env_params = env.map { |v| { e: v } }
130
- run!('run', o, *env_params, service, cmd)
131
+ volume_params = volumes.map { |v| { v: v } }
132
+ run!('run', o, *env_params, *volume_params, service, cmd)
131
133
  end
132
134
 
133
135
  def restart(*services, timeout:10)
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Docker
3
3
  module Compose
4
- VERSION = '1.1.6'
4
+ VERSION = '1.1.7'
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.1.6
4
+ version: 1.1.7
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-05-19 00:00:00.000000000 Z
11
+ date: 2017-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backticks