kitchen-dokken 2.1.0 → 2.1.1

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: ae03351629cd98963f4235e2aeeeded8e100d404
4
- data.tar.gz: 92d2e6f1d1d377023fc76b8580a0701813ac0e8f
3
+ metadata.gz: f9d2ddf8e5f7047998105636514a824a79549690
4
+ data.tar.gz: f9da77645ac9bd7a67cdd69d13ff710658dc1deb
5
5
  SHA512:
6
- metadata.gz: 3552cfc7d31dfaae91ed8d3119cdc1f13d40c03bd59f9ddf0adc2bd9c3d0068723e8f513f17bce299ff218aa1525ed49f669e4ba697bc596226127c5919ebd2c
7
- data.tar.gz: 611860a71e2ca679a19c09251b5b26924f9e08e5c645abb5c62e08871ba33d139460e8f130ae77dd5ba17e41d6a204ee3cb0b2db5ba6c5810d1f197e02e6a176
6
+ metadata.gz: d8e350f0a9045c887fac93778816adba5dd7ab1ed845719618a7d415b338c190cf58476a2c1237f616f5108f8526ff4aeede9b650198a37070130954cc6a3cff
7
+ data.tar.gz: 819154386f7040db29be052d09d5acf59b600107a957e1733596d951cb0ab39bf4f7a8583cb8b8fb4779fd5d5abc4d9ea3610884034c2e73334be66c39c05e2c
@@ -19,6 +19,6 @@
19
19
  module Kitchen
20
20
  module Driver
21
21
  # Version string for Dokken Kitchen driver
22
- DOKKEN_VERSION = '2.1.0'.freeze
22
+ DOKKEN_VERSION = '2.1.1'.freeze
23
23
  end
24
24
  end
@@ -161,8 +161,10 @@ module Kitchen
161
161
  class Base
162
162
  def create_sandbox
163
163
  info("Creating kitchen sandbox in #{sandbox_path}")
164
- FileUtils.mkdir_p(sandbox_path)
165
- File.chmod(0755, sandbox_path)
164
+ unless ::Dir.exist?(sandbox_path)
165
+ FileUtils.mkdir_p(sandbox_path)
166
+ File.chmod(0755, sandbox_path)
167
+ end
166
168
  end
167
169
 
168
170
  def sandbox_path
@@ -175,15 +177,24 @@ module Kitchen
175
177
  end
176
178
 
177
179
  def call(state)
178
- instance.transport.connection(state) do |conn|
179
- conn.execute(install_command)
180
+ create_sandbox
181
+ sandbox_dirs = Dir.glob(File.join(sandbox_path, "*"))
182
+
183
+ instance.transport.connection(state) do |conn|
184
+ conn.execute(install_command)
185
+
186
+ unless state[:data_container].nil?
187
+ conn.execute(init_command)
188
+ info("Transferring files to #{instance.to_str}")
189
+ conn.upload(sandbox_dirs, config[:root_path])
190
+ debug("Transfer complete")
191
+ end
192
+
180
193
  conn.execute(prepare_command)
181
194
  conn.execute(run_command)
182
195
  end
183
196
  rescue Kitchen::Transport::TransportFailed => ex
184
197
  raise ActionFailed, ex.message
185
- ensure
186
- cleanup_sandbox
187
198
  end
188
199
  end
189
200
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-dokken
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean OMeara