smartcloud 0.0.166 → 0.0.167
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aae853a3494b49392b961a51d7f138b51a2ea6e894ce6c14aaa0ab8b7f082363
|
4
|
+
data.tar.gz: 3a032296579e08171d80d83153d10d15e9ee45c7cb2aa81a1e21708a4daa76fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6022c7273b4da3e351a69a209fe4bdc7a373779caa8a91d0bca32728b1207833bdc90d91549e5733b15a88c467677128afbffdc1c8d4f8b69b5f1c22bed7599d
|
7
|
+
data.tar.gz: 9894db67787f37ce347269d748563e9b156945e397861eacaf7bc349bde82e8f721717f7ced8159fd8f2c411d5650f24a3ea4844d5955bfbc00923f532e99e4a
|
@@ -8,7 +8,7 @@ module Smartcloud
|
|
8
8
|
|
9
9
|
def pack
|
10
10
|
logger.formatter = proc do |severity, datetime, progname, message|
|
11
|
-
"\t\t\t
|
11
|
+
"\t\t\t--------> #{severity}: #{message}\n"
|
12
12
|
end
|
13
13
|
|
14
14
|
pack_rails if File.exist? "bin/rails"
|
@@ -21,15 +21,20 @@ module Smartcloud
|
|
21
21
|
# Remove server.pid if it exists
|
22
22
|
FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
|
23
23
|
|
24
|
+
# Perform bundle install
|
24
25
|
logger.info "Performing bundle install ..."
|
25
26
|
logger.formatter = proc do |severity, datetime, progname, message|
|
26
|
-
"\t\t\t\t
|
27
|
+
"\t\t\t\t#{message}"
|
27
28
|
end
|
28
29
|
Open3.popen2("bundle", "install", "--deployment", "--clean") do |stdin, stdout_andstderr, wait_thr|
|
29
30
|
stdout_andstderr.each do |line|
|
30
31
|
logger.info "#{line}"
|
31
32
|
end
|
32
|
-
|
33
|
+
exit_status = wait_thr.value
|
34
|
+
end
|
35
|
+
|
36
|
+
if exit_status.success?
|
37
|
+
logger.error "Could not complete bundle install."
|
33
38
|
end
|
34
39
|
|
35
40
|
# if system("bundle install --deployment --clean")
|
data/lib/smartcloud/logger.rb
CHANGED
@@ -25,7 +25,7 @@ module Smartcloud
|
|
25
25
|
def configure_logger_for(classname)
|
26
26
|
$stdout.sync = true
|
27
27
|
logger = ::Logger.new($stdout)
|
28
|
-
logger.level = ::Logger
|
28
|
+
logger.level = "::Logger::#{Smartcloud.config.logger_level}".to_sym
|
29
29
|
logger.progname = classname
|
30
30
|
logger
|
31
31
|
end
|