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: 9a4bc7cca8e832c9c6facc8504e63191f104d3594fb89939dd32a8d432f6e4d0
4
- data.tar.gz: 4fb55206b6ae3e2f3a90538ade94430d6f318e9b63c404622756781eb0fd140f
3
+ metadata.gz: aae853a3494b49392b961a51d7f138b51a2ea6e894ce6c14aaa0ab8b7f082363
4
+ data.tar.gz: 3a032296579e08171d80d83153d10d15e9ee45c7cb2aa81a1e21708a4daa76fb
5
5
  SHA512:
6
- metadata.gz: 9a92dc0e156683c83f92cc59f6ae51ccea3c1271faa7bf001b013708984f4d4d1a50500ef3a041954951f9d01e2b8411791494489f4c374d2e5b23f5c871c88f
7
- data.tar.gz: 48159337edee2d7ccfb55f5347046f5ea8cdd6658bfb5171824f15a53ca6873136ee685b16a68797bf6488ddb47c685c126252d35448e52cd7bf431193717902
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-----> #{severity}: #{message}\n"
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\t#{message}"
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
- raise "bundle install failed." if wait_thr.value.success?
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")
@@ -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::INFO
28
+ logger.level = "::Logger::#{Smartcloud.config.logger_level}".to_sym
29
29
  logger.progname = classname
30
30
  logger
31
31
  end
@@ -11,3 +11,7 @@ Smartcloud.config.sysadmin_email = "admin@yourdomain.com"
11
11
 
12
12
  # letsencrypt test boolean to be used
13
13
  Smartcloud.config.letsencrypt_test = false
14
+
15
+ # logger level
16
+ # DEBUG, INFO, WARN, ERROR, FATAL, UNKNOWN
17
+ Smartcloud.config.logger_level = "INFO"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.166
4
+ version: 0.0.167
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard