kitchen-dokken 2.0.7 → 2.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.rb +1 -0
- data/lib/kitchen/driver/dokken_version.rb +1 -1
- data/lib/kitchen/helpers.rb +10 -1
- data/lib/kitchen/transport/dokken.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: 1aa897f3bc69b1c3aa35ed2f9e06ee205358da89
|
|
4
|
+
data.tar.gz: 79cb0a6f3f1bfd497ea9f6fbec77967aedfdf7d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a4325c085081c0a82be5384b3efc19e6834fb83ec58e2eaef9d40baf308033268c1f333c6f16d47b1af4853490fa4d73deec8ce9c0afb3fedceb0315b65c0b0f
|
|
7
|
+
data.tar.gz: 5893ad8139226cf7d6a93e82be517eb35c21bad5138d621eea3f168770b7d3f795d95725e5141c7cfc5fe34e248c850fc9704a501e0011929adddf4123c122c8
|
data/lib/kitchen/helpers.rb
CHANGED
|
@@ -89,11 +89,20 @@ EOF
|
|
|
89
89
|
end
|
|
90
90
|
|
|
91
91
|
def dokken_create_sandbox
|
|
92
|
-
info("Creating local sandbox
|
|
92
|
+
info("Creating local sandbox at #{dokken_sandbox_path}")
|
|
93
93
|
FileUtils.mkdir_p(dokken_sandbox_path)
|
|
94
94
|
File.chmod(0755, dokken_sandbox_path)
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
+
def dokken_delete_sandbox
|
|
98
|
+
info("Deleting local sandbox at #{dokken_sandbox_path}")
|
|
99
|
+
begin
|
|
100
|
+
FileUtils.rm_r(dokken_sandbox_path)
|
|
101
|
+
rescue Errno::ENOENT
|
|
102
|
+
debug("Cannot delete #{dokken_sandbox_path}. Does not exist")
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
97
106
|
def dokken_sandbox_path
|
|
98
107
|
"#{Dir.home}/.dokken/sandbox/#{instance_name}"
|
|
99
108
|
end
|
|
@@ -68,7 +68,7 @@ module Kitchen
|
|
|
68
68
|
|
|
69
69
|
with_retries { @runner = ::Docker::Container.get(instance_name, {}, docker_connection) }
|
|
70
70
|
with_retries do
|
|
71
|
-
o = @runner.exec(Shellwords.shellwords(command), 'e' => {'TERM' => 'xterm'}
|
|
71
|
+
o = @runner.exec(Shellwords.shellwords(command), 'e' => { 'TERM' => 'xterm' }) { |_stream, chunk| print chunk.to_s }
|
|
72
72
|
@exit_code = o[2]
|
|
73
73
|
end
|
|
74
74
|
|
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: 2.0.
|
|
4
|
+
version: 2.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: 2017-01-
|
|
11
|
+
date: 2017-01-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-kitchen
|