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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e66f31875d74c58a5bcc9b8e76478e5196d4eb3b
4
- data.tar.gz: 14e64d58c9c35089e8b79e3a55375c722d666a28
3
+ metadata.gz: 1aa897f3bc69b1c3aa35ed2f9e06ee205358da89
4
+ data.tar.gz: 79cb0a6f3f1bfd497ea9f6fbec77967aedfdf7d0
5
5
  SHA512:
6
- metadata.gz: aa7987c6d730e75d548a86c6f976e5c74b5d53cea2da2fdf4ee4384e65022b98bcb8e0ef4cbb4e79ca5d05da439afeac431d52fcce8b55fe1ea4087025340fc8
7
- data.tar.gz: 0793a712da61fd93fe39051a8ecfae47b150c89e6613fbbfbcac59e21d0b4e68113df1002f4d9dc511678d0203e0cdaf3f093753217f2b900d587568d0a2fe0b
6
+ metadata.gz: a4325c085081c0a82be5384b3efc19e6834fb83ec58e2eaef9d40baf308033268c1f333c6f16d47b1af4853490fa4d73deec8ce9c0afb3fedceb0315b65c0b0f
7
+ data.tar.gz: 5893ad8139226cf7d6a93e82be517eb35c21bad5138d621eea3f168770b7d3f795d95725e5141c7cfc5fe34e248c850fc9704a501e0011929adddf4123c122c8
@@ -90,6 +90,7 @@ module Kitchen
90
90
  stop_runner_container
91
91
  delete_runner_container
92
92
  delete_work_image
93
+ dokken_delete_sandbox
93
94
  end
94
95
 
95
96
  private
@@ -19,6 +19,6 @@
19
19
  module Kitchen
20
20
  module Driver
21
21
  # Version string for Dokken Kitchen driver
22
- DOKKEN_VERSION = '2.0.7'.freeze
22
+ DOKKEN_VERSION = '2.0.8'.freeze
23
23
  end
24
24
  end
@@ -89,11 +89,20 @@ EOF
89
89
  end
90
90
 
91
91
  def dokken_create_sandbox
92
- info("Creating local sandbox in #{dokken_sandbox_path}")
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'} ) { |_stream, chunk| print chunk.to_s }
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.7
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-30 00:00:00.000000000 Z
11
+ date: 2017-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen