kitchen-dokken 2.0.14 → 2.0.15

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: 5befb25e9af14115657f2ad87b88c7c384ebf53b
4
- data.tar.gz: 255c175defd349e3e9ee07fa3f84cdd6527486c0
3
+ metadata.gz: 4ea658582d40c59d0d4c3b6a3c9e01891ab040fd
4
+ data.tar.gz: ee80b003cabe762511bb860eeaed930929200c66
5
5
  SHA512:
6
- metadata.gz: 29606237be93c692d0f3d625f35318b7aed088dd716cbab51be89fd56e03e3e617fd42671bcc90dba2d4f58badd41937d00e343fbd4a93d25b3e2fe235ee6871
7
- data.tar.gz: c532bea9da3fa79e6e35d7fc6fe3f92e357b2b157d08f12afc56de457f747d9a8b41601620040d8b9667fb53175c7815290e1200aad66f977cc6954c26fd6855
6
+ metadata.gz: 753bc2011e71b6a336c38e1235f6674b7c76454394e801ec444dc97a6f0ab91448641694c435529bb936f12131044484ca801156ba27d6a2835fc66b7646d8c8
7
+ data.tar.gz: 44de7645a8171f9bb87ee903c0d6f595f93d965023611ccf62c11e535e2325b737085cd0af90b24a896aeb6f3da766df01e6ee03e978a8429e8db0984baca1dc
@@ -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.14'.freeze
22
+ DOKKEN_VERSION = '2.0.15'.freeze
23
23
  end
24
24
  end
@@ -95,16 +95,18 @@ module Kitchen
95
95
  raise Kitchen::UserError, 'docker_host_url must be tcp:// or unix://'
96
96
  end
97
97
 
98
- tmpdir = Dir.tmpdir
99
- FileUtils.mkdir_p "#{tmpdir}/dokken"
100
- File.write("#{tmpdir}/dokken/id_rsa", insecure_ssh_private_key)
101
- FileUtils.chmod(0600, "#{tmpdir}/dokken/id_rsa")
98
+ tmpdir = Dir.tmpdir + '/dokken/'
99
+ FileUtils.mkdir_p "#{tmpdir}", :mode => 0777
100
+ tmpdir += Process.uid.to_s
101
+ FileUtils.mkdir_p "#{tmpdir}"
102
+ File.write("#{tmpdir}/id_rsa", insecure_ssh_private_key)
103
+ FileUtils.chmod(0600, "#{tmpdir}/id_rsa")
102
104
 
103
105
  begin
104
106
  rsync_cmd = '/usr/bin/rsync -a -e'
105
107
  rsync_cmd << ' \''
106
108
  rsync_cmd << 'ssh -2'
107
- rsync_cmd << " -i #{tmpdir}/dokken/id_rsa"
109
+ rsync_cmd << " -i #{tmpdir}/id_rsa"
108
110
  rsync_cmd << ' -o CheckHostIP=no'
109
111
  rsync_cmd << ' -o Compression=no'
110
112
  rsync_cmd << ' -o PasswordAuthentication=no'
@@ -123,7 +125,7 @@ module Kitchen
123
125
  local,
124
126
  remote,
125
127
  recursive: true,
126
- ssh: { port: port, keys: ["#{tmpdir}/dokken/id_rsa"] })
128
+ ssh: { port: port, keys: ["#{tmpdir}/id_rsa"] })
127
129
  end
128
130
  end
129
131
  end
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.14
4
+ version: 2.0.15
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-02-10 00:00:00.000000000 Z
11
+ date: 2017-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen