kitchen-dokken 0.0.17 → 0.0.18
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 +11 -6
- data/lib/kitchen/driver/dokken_version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1331d108ec0fd4f436ec283eea7b297e8ba7ddbd
|
|
4
|
+
data.tar.gz: 8b7c178ffc9bac18f8cdac11fc61e96eda4fe600
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd1a6c190c6cc3e50dc3df2459281da2c651cb95f86a66d2c3f85efd877e226f6f732b8d74eed64be1646344548c75ae2a8ec2bd885dbfcb6236d000db389c2a
|
|
7
|
+
data.tar.gz: 957ca38b58e557d28c6f8da2fb6bced0dc1fc0b5d9dce0f47282283123715efe4510a958403bb45624d2496d2e034353de536d7a36a7291df95ea78fd653a811
|
|
@@ -273,13 +273,12 @@ module Kitchen
|
|
|
273
273
|
end
|
|
274
274
|
|
|
275
275
|
def delete_container(name)
|
|
276
|
-
with_retries { @container = Docker::Container.get(name, docker_connection) }
|
|
277
|
-
puts "Destroying container #{name}."
|
|
278
|
-
|
|
279
276
|
begin
|
|
280
|
-
|
|
277
|
+
puts "Destroying container #{name}."
|
|
278
|
+
with_retries { @container = Docker::Container.get(name, docker_connection) }
|
|
281
279
|
rescue
|
|
282
|
-
puts "Container #{name} not found. Nothing to
|
|
280
|
+
puts "Container #{name} not found. Nothing to destroy"
|
|
281
|
+
return
|
|
283
282
|
end
|
|
284
283
|
|
|
285
284
|
begin
|
|
@@ -288,7 +287,13 @@ module Kitchen
|
|
|
288
287
|
wait_running_state(args['name'], false)
|
|
289
288
|
end
|
|
290
289
|
rescue
|
|
291
|
-
|
|
290
|
+
debug "Container #{name} not found. Nothing to stop."
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
begin
|
|
294
|
+
with_retries { @container.delete(force: true, v: true) }
|
|
295
|
+
rescue
|
|
296
|
+
debug "Container #{name} not found. Nothing to delete."
|
|
292
297
|
end
|
|
293
298
|
end
|
|
294
299
|
|