smartcloud 0.0.171 → 0.0.172

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: e156f54f86c83734ce2a079df33131fbe931c06ba14cc40f546f02c0ed591099
4
- data.tar.gz: 3fcf9d76b499c06cb4759c99fb057aa594795c08e6b147ed8a80d5d7edbb4936
3
+ metadata.gz: 3669c3224f7bb59e2ceff55f8828dec6c3fa83854072ac7f958c207e209a1eb5
4
+ data.tar.gz: b96fbc354755c55be1eb1423125a0b81aed719c5169f5cf8b5e7d6a287bc3acc
5
5
  SHA512:
6
- metadata.gz: 89513317605a7d9fd69a11d563a82f87159e7d253a33f15f3941e3b7f6efd694e0e055e6679ad764c984c0acaab34134e8b86fc34ef4c7235765ed4e22be9e86
7
- data.tar.gz: 6638d96afd7517fbb0f453f7578aa650406ed08096dfb9dc001189b9e89ee01ce715165635b7c635210eb3f4e1320642d0091207957160bb569f019253a6882b
6
+ metadata.gz: 100df51136aa3a767e72ef13d78db0783d08a35331e83d206dcb39eaad95777db27ff01a47049a810e9376cc057dc0fbfec5a5256a55e1c88f955d75e91cd7de
7
+ data.tar.gz: c61c68a8362ba03d2e26d367838432b0aa96785962da455caadb82718ff3a0b3daa7ef138cf436007c481bbe30d2c9207948655a4d107c174f65871637869b7c
@@ -11,9 +11,9 @@ module Smartcloud
11
11
 
12
12
  pack_rails if File.exist? "bin/rails"
13
13
 
14
- logger.info "Could not continue ... Launch Failed."
14
+ logger.error "Could not continue ... Launch Failed."
15
15
  logger.formatter = nil
16
- exit 1
16
+ exit 12
17
17
  end
18
18
 
19
19
  def pack_rails
@@ -26,6 +26,7 @@ module Smartcloud
26
26
 
27
27
  # Perform bundle install
28
28
  def bundle_install?
29
+ logger.info "\n"
29
30
  logger.info "Performing bundle install ..."
30
31
  set_logger_formatter_tabs
31
32
  Open3.popen2("bundle", "install", "--deployment", "--clean") do |stdin, stdout_and_stderr, wait_thr|
@@ -39,6 +40,7 @@ module Smartcloud
39
40
 
40
41
  # Perform pre-compiling of assets
41
42
  def precompile_assets?
43
+ logger.info "\n"
42
44
  logger.info "Installing Javascript dependencies & pre-compiling assets ..."
43
45
  set_logger_formatter_tabs
44
46
  Open3.popen2("bundle", "exec", "rails", "assets:precompile") do |stdin, stdout_and_stderr, wait_thr|
@@ -52,14 +54,18 @@ module Smartcloud
52
54
 
53
55
  # Perform starting of web server
54
56
  def start_web_server?
57
+ logger.debug "\n"
55
58
  logger.debug "Starting Web Server ..."
56
59
 
57
60
  # Remove server.pid if it exists
58
61
  FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
59
62
 
60
63
  # if system("god -c Godfile -D")
64
+ logger.info "\n"
61
65
  logger.info "Launched Application ... Success."
66
+ # return true
62
67
  # end
68
+ return false
63
69
  end
64
70
 
65
71
  def set_logger_formatter_arrow
@@ -228,7 +228,6 @@ module Smartcloud
228
228
  return unless self.load_container_env_vars(container_path)
229
229
 
230
230
  # Verify the user and ensure the user is correct and has access to this repository
231
- logger.info "Verifying User ..."
232
231
  unless ENV['USERNAME'] == username
233
232
  logger.error "Unauthorized."
234
233
  return
@@ -289,6 +288,7 @@ module Smartcloud
289
288
  end
290
289
 
291
290
  def self.start_app_rails(appname, container_path, container_path_with_version)
291
+ logger.info "\n"
292
292
  logger.info "Ruby on Rails application detected."
293
293
 
294
294
  # Setup rails env
@@ -1,5 +1,7 @@
1
1
  require "logger"
2
2
 
3
+ $stdout.sync = true
4
+
3
5
  module Smartcloud
4
6
  module Logger
5
7
  def logger
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.171
4
+ version: 0.0.172
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard