smartcloud 0.0.145 → 0.0.146
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smartcloud/grids/runner.rb +7 -7
- 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: 6976286ad263b1b4e34428658b5b89fb4a38e7626672527b0b9237efe7ff77da
|
4
|
+
data.tar.gz: 800708d9594798102789a7a5ddbd9a10d7618acc391a545062f8840fee234b29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 837d477bc2afa431067cde5064aeae08f9a827f2e004ffa818d046bf23ede97f0d303eef1d2f38025a9df1dfb2bc32e89a4a7a07790fd5e490e745546c2208ca
|
7
|
+
data.tar.gz: '092d20c4cf41bc1693fd96054ded4708b65cd5f5d49aaff213e626bdba410b115fb2a4ddaef05ea25d2a44b7142e4acdae6a792c2061ac496c74efb418b3d89a'
|
@@ -2,6 +2,12 @@
|
|
2
2
|
module Smartcloud
|
3
3
|
module Grids
|
4
4
|
class Runner
|
5
|
+
logger = Logger.new($stdout)
|
6
|
+
logger.level = Logger::INFO
|
7
|
+
logger.formatter = proc do |severity, datetime, progname, message|
|
8
|
+
" #{severity}: #{message}\n"
|
9
|
+
end
|
10
|
+
|
5
11
|
def initialize
|
6
12
|
end
|
7
13
|
|
@@ -218,12 +224,6 @@ module Smartcloud
|
|
218
224
|
end
|
219
225
|
|
220
226
|
def self.prereceive_app(appname, username, oldrev, newrev, refname)
|
221
|
-
logger = Logger.new($stdout)
|
222
|
-
logger.level = Logger::INFO
|
223
|
-
logger.formatter = proc do |severity, datetime, progname, message|
|
224
|
-
" #{severity}: #{message}\n"
|
225
|
-
end
|
226
|
-
|
227
227
|
container_path = "#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner/apps/containers/#{appname}"
|
228
228
|
|
229
229
|
## Verify the user and ensure the user is correct and has access to this repository
|
@@ -386,7 +386,7 @@ module Smartcloud
|
|
386
386
|
system("docker network connect solr-network #{appname}")
|
387
387
|
system("docker network connect mysql-network #{appname}")
|
388
388
|
|
389
|
-
|
389
|
+
system("docker start --attach #{appname}")
|
390
390
|
end
|
391
391
|
end
|
392
392
|
end
|