beaker-docker 0.3.1 → 0.3.2

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: 9a0081b79c132d2f2b1ce5bab4e2b89c710138fd
4
- data.tar.gz: d4d27c1facb7c19342a94a27e08d4d4fe104ae7e
3
+ metadata.gz: 67087e4a344e2b99b38c11d92dc6e1ec6d0da906
4
+ data.tar.gz: 590abd5e22e21b77974f7ec68c53580d12a95e92
5
5
  SHA512:
6
- metadata.gz: 30a53bf3cd1dc80244d33a3cf82595a3fc7928d62dd2d51789d87106daac8aae1ffb1fa9e4b6e9b7f4570478642b8a046f76b313237b04ea7c33c2a5ef41e828
7
- data.tar.gz: 1f17e998fc2cabb38de0273a91cd1286adde293e112f0affe1849025de198357adfd3472796c98dd81aefa39e72c715f85431aa8de66248db56475047f3a22e2
6
+ metadata.gz: 6d7a7cb7428dd46aaf452fd91a84ed1195852ad49976f701d04b36ad740b1e1c0f38fdd3f4d1cc473ef80af3bff8a14cf0f49ac53562d8bbcb0de4527a2c482e
7
+ data.tar.gz: fd4b769202763ccd5da58cd0620284d481a894fed70e2ac3663b4e6a007885d3c6b7bfa0e388dbb4ab393091d0e25019a4d4058e8c116efe7f46b472d0106b49
@@ -1,3 +1,3 @@
1
1
  module BeakerDocker
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
@@ -88,7 +88,12 @@ module Beaker
88
88
  unless host['mount_folders'].nil?
89
89
  container_opts['HostConfig'] ||= {}
90
90
  container_opts['HostConfig']['Binds'] = host['mount_folders'].values.map do |mount|
91
- a = [ File.expand_path(mount['host_path']), mount['container_path'] ]
91
+ host_path = File.expand_path(mount['host_path'])
92
+ # When using docker_toolbox and getting a "(Driveletter):/" path, convert windows path to VM mount
93
+ if ENV['DOCKER_TOOLBOX_INSTALL_PATH'] && host_path =~ /^.\:\//
94
+ host_path = "/" + host_path.gsub(/^.\:/, host_path[/^(.)/].downcase)
95
+ end
96
+ a = [ host_path, mount['container_path'] ]
92
97
  a << mount['opts'] if mount.has_key?('opts')
93
98
  a.join(':')
94
99
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rishi Javia, Kevin Imber, Tony Vu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-22 00:00:00.000000000 Z
11
+ date: 2018-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec