smartcloud 0.0.172 → 0.0.173

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: 3669c3224f7bb59e2ceff55f8828dec6c3fa83854072ac7f958c207e209a1eb5
4
- data.tar.gz: b96fbc354755c55be1eb1423125a0b81aed719c5169f5cf8b5e7d6a287bc3acc
3
+ metadata.gz: b4e807cd462a1404bd47a70422196fc40b06ca2cb3663b26c8d988ca3d33d67f
4
+ data.tar.gz: 5e64555481f51112145759f4b3f8d7f7fe5632826a2c3ce68ef0a1952a07f3c2
5
5
  SHA512:
6
- metadata.gz: 100df51136aa3a767e72ef13d78db0783d08a35331e83d206dcb39eaad95777db27ff01a47049a810e9376cc057dc0fbfec5a5256a55e1c88f955d75e91cd7de
7
- data.tar.gz: c61c68a8362ba03d2e26d367838432b0aa96785962da455caadb82718ff3a0b3daa7ef138cf436007c481bbe30d2c9207948655a4d107c174f65871637869b7c
6
+ metadata.gz: fefeeccd0c33acb1b443a0d39d1f33d9d6295edcc80ba9f6d06dea3b27d8a0494b632e3c21ca527e1d23c8e9ad1721d23d176e371588dea1a65ff10ec0cded17
7
+ data.tar.gz: 261ab61d1bd2c39f3c072eaf625674b92d07203d977fa008cd051feea0fc1adb52a58cc3bcf2542ccf45f021b99653ff1327980ce6da4db85010d1c767aa25e8
@@ -13,7 +13,7 @@ module Smartcloud
13
13
 
14
14
  logger.error "Could not continue ... Launch Failed."
15
15
  logger.formatter = nil
16
- exit 12
16
+ exit 1
17
17
  end
18
18
 
19
19
  def pack_rails
@@ -26,24 +26,24 @@ module Smartcloud
26
26
 
27
27
  # Perform bundle install
28
28
  def bundle_install?
29
- logger.info "\n"
29
+ logger.info ""
30
30
  logger.info "Performing bundle install ..."
31
31
  set_logger_formatter_tabs
32
- Open3.popen2("bundle", "install", "--deployment", "--clean") do |stdin, stdout_and_stderr, wait_thr|
32
+ Open3.popen2e("bundle", "install", "--deployment", "--clean") do |stdin, stdout_and_stderr, wait_thr|
33
33
  stdout_and_stderr.each { |line| logger.info "#{line}" }
34
34
  return true if wait_thr.value.success?
35
35
  end
36
36
  set_logger_formatter_arrow
37
- logger.error "Could not complete bundle install. Please check if your Gemfile.lock is upto date."
37
+ logger.error "Could not complete bundle install."
38
38
  return false
39
39
  end
40
40
 
41
41
  # Perform pre-compiling of assets
42
42
  def precompile_assets?
43
- logger.info "\n"
43
+ logger.info ""
44
44
  logger.info "Installing Javascript dependencies & pre-compiling assets ..."
45
45
  set_logger_formatter_tabs
46
- Open3.popen2("bundle", "exec", "rails", "assets:precompile") do |stdin, stdout_and_stderr, wait_thr|
46
+ Open3.popen2e("bundle", "exec", "rails", "assets:precompile") do |stdin, stdout_and_stderr, wait_thr|
47
47
  stdout_and_stderr.each { |line| logger.info "#{line}" }
48
48
  return true if wait_thr.value.success?
49
49
  end
@@ -54,14 +54,14 @@ module Smartcloud
54
54
 
55
55
  # Perform starting of web server
56
56
  def start_web_server?
57
- logger.debug "\n"
57
+ logger.debug ""
58
58
  logger.debug "Starting Web Server ..."
59
59
 
60
60
  # Remove server.pid if it exists
61
61
  FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
62
62
 
63
63
  # if system("god -c Godfile -D")
64
- logger.info "\n"
64
+ logger.info ""
65
65
  logger.info "Launched Application ... Success."
66
66
  # return true
67
67
  # end
@@ -288,7 +288,7 @@ module Smartcloud
288
288
  end
289
289
 
290
290
  def self.start_app_rails(appname, container_path, container_path_with_version)
291
- logger.info "\n"
291
+ logger.info ""
292
292
  logger.info "Ruby on Rails application detected."
293
293
 
294
294
  # Setup rails env
@@ -300,7 +300,7 @@ module Smartcloud
300
300
  system("grep -q '^RAILS_SERVE_STATIC_FILES=' #{env_path} || echo 'RAILS_SERVE_STATIC_FILES=enabled' >> #{env_path}")
301
301
  system("grep -q '^LANG=' #{env_path} || echo 'LANG=en_US.UTF-8' >> #{env_path}")
302
302
  system("grep -q '^RAILS_MASTER_KEY=' #{env_path} || echo 'RAILS_MASTER_KEY=yourmasterkey' >> #{env_path}")
303
- logger.warn "WARNING: Please set your RAILS_MASTER_KEY env var for this rails app." if system("grep -q '^RAILS_MASTER_KEY=yourmasterkey' #{env_path}")
303
+ logger.warn "Please set your RAILS_MASTER_KEY env var for this rails app." if system("grep -q '^RAILS_MASTER_KEY=yourmasterkey' #{env_path}")
304
304
 
305
305
  # Setup gems folder. If this is not created then docker will create it while running the container,
306
306
  # but the folder will have root user assigned instead of the current user.
@@ -308,7 +308,7 @@ module Smartcloud
308
308
 
309
309
  # Setup Godfile
310
310
  unless File.exist? "#{container_path_with_version}/Godfile"
311
- logger.warn "WARNING: Godfile not detected. Adding a default Godfile. It is recommended to add your own Godfile."
311
+ logger.warn "Godfile not detected. Adding a default Godfile. It is recommended to add your own Godfile."
312
312
  page = <<~"HEREDOC"
313
313
  God.watch do |w|
314
314
  w.name = "web"
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.172
4
+ version: 0.0.173
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard