kitchen-dokken 1.0.7 → 1.0.8
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/kitchen/driver/dokken_version.rb +1 -1
- data/lib/kitchen/transport/dokken.rb +10 -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: 6e55eb1651ecc8350a9f01f604bf3111c5d8f749
|
|
4
|
+
data.tar.gz: dd51eb672392bfe6e065ee726774915162dca52a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9bae76b566d70f5fbd932e6ab421df51a329c4b2970c06111c60ac6cd1e2650562c59ce7a739033a062aae316f27f8ac872e6f0f2d09ceb1676baccf45cecff9
|
|
7
|
+
data.tar.gz: 67dd4b4d3cac8286eec221d688ba9a69685f4c23029d389eec56c1e41f6ba70d7c7bcacd0de8e8db2738f941bfb1c3b0788ddf2e9fa85eb090f906d8e1ae0725
|
|
@@ -41,7 +41,9 @@ module Kitchen
|
|
|
41
41
|
default_config :docker_host_url, ENV['DOCKER_HOST'] || 'unix:///var/run/docker.sock'
|
|
42
42
|
default_config :read_timeout, 3600
|
|
43
43
|
default_config :write_timeout, 3600
|
|
44
|
-
default_config :host_ip_override
|
|
44
|
+
default_config :host_ip_override do |transport|
|
|
45
|
+
transport.docker_for_mac? ? "localhost" : false
|
|
46
|
+
end
|
|
45
47
|
|
|
46
48
|
# (see Base#connection)
|
|
47
49
|
def connection(state, &block)
|
|
@@ -161,6 +163,13 @@ module Kitchen
|
|
|
161
163
|
end
|
|
162
164
|
end
|
|
163
165
|
|
|
166
|
+
# Detect whether or not we are running in Docker for Mac
|
|
167
|
+
#
|
|
168
|
+
# @return [TrueClass,FalseClass]
|
|
169
|
+
def docker_for_mac?
|
|
170
|
+
Docker.info["Name"] == "moby"
|
|
171
|
+
end
|
|
172
|
+
|
|
164
173
|
private
|
|
165
174
|
|
|
166
175
|
# Builds the hash of options needed by the Connection object on
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kitchen-dokken
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean OMeara
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-12-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-kitchen
|