rake_docker 2.4.0.pre.7 → 2.4.0.pre.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_docker/container.rb +8 -6
- data/lib/rake_docker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41ed165c21a29a89724c0522a70b0ca640859bc15b12ceca1831bcf9137d980c
|
4
|
+
data.tar.gz: ef625cb0bf6943ca518d960552551e0f3a550e6497a851941135c9ede02393c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96d7efdf2b17022c0463129b6c91cc90e58e0985464745d49888d18e3a54e1d31866b728fe391ea1b4494589caeafd0f01f5259f30a6b46f5d955b28e6ef8a71
|
7
|
+
data.tar.gz: 00a1842d0d1d78af5ba9b1715374be4407d1c9ece3eb60e7bb688399289bd0e2d9a2ccc65375facc9cbeced40e177ba84c5ba71074982b054bb37947692331ba
|
data/Gemfile.lock
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'docker'
|
2
|
+
|
1
3
|
module RakeDocker
|
2
4
|
module Container
|
3
5
|
REPORTER_MESSAGES = [
|
@@ -257,15 +259,15 @@ module RakeDocker
|
|
257
259
|
if container
|
258
260
|
reporter.container_exists(container)
|
259
261
|
reporter.stopping_container(container)
|
260
|
-
|
261
|
-
puts "Waiting..."
|
262
|
+
container.stop
|
262
263
|
container.wait
|
263
|
-
puts "List ***************"
|
264
|
-
require 'pp'
|
265
|
-
pp Docker::Container.all(all: true)
|
266
264
|
reporter.container_stopped(container)
|
267
265
|
reporter.deleting_container(container)
|
268
|
-
|
266
|
+
begin
|
267
|
+
container.delete
|
268
|
+
rescue Docker::NotFoundError
|
269
|
+
# ignored, not sure why this happens though...
|
270
|
+
end
|
269
271
|
reporter.container_deleted(container)
|
270
272
|
else
|
271
273
|
reporter.container_does_not_exist(name)
|
data/lib/rake_docker/version.rb
CHANGED