smartcloud 0.0.64 → 0.0.65
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/smartcloud/grids/runner.rb +9 -11
- 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: fd5c32045815ff6576bd192f7df5947c10b14fb707134c2d942e4ea0017ef684
|
4
|
+
data.tar.gz: 70b682cc6a8ffb885b8ed243dd992101905ab8185c55052fa6d07cf798676dbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d83b11611099d06d112128fa74bc8ccaafb982a7ab3bc74673cf7f5edd63faa3cf2adb82cdd10787289fdebaeae170966edcfe45e895023d067db288be0f6dd8
|
7
|
+
data.tar.gz: 23dbf507e727f2e0599479be3699a961ad6dc909c1ab162e7f3bd5674ffe462a7a5a745ad9a92241ff1ca39ac2dca2c90974fd6c73b920499605327080c5615f
|
@@ -49,13 +49,15 @@ module Smartcloud
|
|
49
49
|
def self.down
|
50
50
|
if Smartcloud::Docker.running?
|
51
51
|
# Stopping & Removing containers - in reverse order
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
print "-----> Removing container runner ... "
|
57
|
-
if system("docker rm 'runner'", out: File::NULL)
|
52
|
+
if system("docker inspect -f '{{.State.Running}}' 'runner'", [:out, :err] => File::NULL)
|
53
|
+
print "-----> Stopping container runner ... "
|
54
|
+
if system("docker stop 'runner'", out: File::NULL)
|
58
55
|
puts "done"
|
56
|
+
|
57
|
+
print "-----> Removing container runner ... "
|
58
|
+
if system("docker rm 'runner'", out: File::NULL)
|
59
|
+
puts "done"
|
60
|
+
end
|
59
61
|
end
|
60
62
|
end
|
61
63
|
|
@@ -347,10 +349,6 @@ module Smartcloud
|
|
347
349
|
end
|
348
350
|
|
349
351
|
# Creating & Starting container
|
350
|
-
# IMPORTANT NOTE:
|
351
|
-
# The below commands of docker are executed here. However, they run from the host.
|
352
|
-
# Therefore, the ~ used in the commands below is used to denote the home directory of the host
|
353
|
-
# and not the runner.
|
354
352
|
print "-----> Creating container #{appname} ... "
|
355
353
|
if system("docker create \
|
356
354
|
--name='#{appname}' \
|
@@ -367,7 +365,7 @@ module Smartcloud
|
|
367
365
|
system("docker network connect mysql-network #{appname}")
|
368
366
|
|
369
367
|
print "-----> Starting container #{appname} ... "
|
370
|
-
if system("docker start #{appname}"
|
368
|
+
if system("docker start #{appname}")
|
371
369
|
puts "done"
|
372
370
|
exit 0
|
373
371
|
end
|