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 +4 -4
- data/lib/kitchen/driver/dokken_version.rb +1 -1
- data/lib/kitchen/transport/dokken.rb +8 -6
- 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: 4ea658582d40c59d0d4c3b6a3c9e01891ab040fd
|
4
|
+
data.tar.gz: ee80b003cabe762511bb860eeaed930929200c66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 753bc2011e71b6a336c38e1235f6674b7c76454394e801ec444dc97a6f0ab91448641694c435529bb936f12131044484ca801156ba27d6a2835fc66b7646d8c8
|
7
|
+
data.tar.gz: 44de7645a8171f9bb87ee903c0d6f595f93d965023611ccf62c11e535e2325b737085cd0af90b24a896aeb6f3da766df01e6ee03e978a8429e8db0984baca1dc
|
@@ -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}
|
100
|
-
|
101
|
-
FileUtils.
|
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}/
|
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}/
|
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.
|
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-
|
11
|
+
date: 2017-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|