smartcloud 0.0.188 → 0.0.189

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c53fe02c5045ba4ecea4ff92cc9b3576d9cd23d820ac8c10fdac3e9b76e3c3b
4
- data.tar.gz: ff8cbe7ca9d08a4e4150705d159291431746ddb748f93496fbf749b778055272
3
+ metadata.gz: 8b33bd879a4af69d254a92c7e3805b93acf2e8a7b81865ec54a7c2858de36e60
4
+ data.tar.gz: 74c5aa93230e4687e667586d2f962a9590f7b3b5d2148354eab6fdd0bb4e5c84
5
5
  SHA512:
6
- metadata.gz: cd7ba77ecb3c4e62fec3d47314e1db6871c4df8f62a0d6c81d411caf21f9b74a243d1d555f6ff1a8cf17988de183273f6a02943189d8cf31a99b2c2f2ed68694
7
- data.tar.gz: ed282e7ffd3a7f00d0e3721936b087126baeb324c9011f47cbb4476e9d84bfff1c11f4e508fc40fb9e02df7c5a7b06d50eb3f493548148a136818cf5beac9579
6
+ metadata.gz: 3afe318524b8f7257fa4a2fcf0bf8e987c41ab2d389204554205038bfc0e2fb93f38ea97011da02c44b1026af1db8a94cd7778e7e357bcafbd92fbe5cfdc2026
7
+ data.tar.gz: 8f3f9f882c999740ce6d7fe2962d12b1bc8895633545b8f6695a2c0716739ad0cce4e7fc9f73c84772f0522f5076fcbc71a44f5498d98f06c8404cf34f9050fa
@@ -72,7 +72,6 @@ module Smartcloud
72
72
  FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
73
73
 
74
74
  # if system("god -c Godfile -D")
75
- logger.info "Launched Application ... Success."
76
75
  return true
77
76
  # end
78
77
  # return false
@@ -250,7 +250,7 @@ module Smartcloud
250
250
  FileUtils.mkdir_p(container_path_with_version)
251
251
  if system("git archive #{newrev} | tar -x -C #{container_path_with_version}")
252
252
  # Start App
253
- return self.start_app(appname)
253
+ self.start_app(appname)
254
254
  else
255
255
  logger.fatal "Could not extract new app version ... Failed."
256
256
  return
@@ -280,7 +280,7 @@ module Smartcloud
280
280
  logger.info "Launching Application ..."
281
281
  if File.exist? "#{container_path_with_version}/bin/rails"
282
282
  # Starting Rails App
283
- return self.start_app_rails(appname, container_path, container_path_with_version)
283
+ self.start_app_rails(appname, container_path, container_path_with_version)
284
284
  end
285
285
  end
286
286
  end
@@ -346,6 +346,7 @@ module Smartcloud
346
346
  if system("docker start --attach #{appname}_new")
347
347
  if self.hot_reloaded_app?(appname)
348
348
  self.clean_up(container_path)
349
+ logger.info "Launched Application ... Success."
349
350
  exit 0
350
351
  end
351
352
  else
@@ -9,6 +9,9 @@ while read oldrev newrev refname; do
9
9
  else
10
10
  REPOSITORY_BASENAME=$(basename $(readlink -nf "$PWD"/..))
11
11
  fi
12
- script -qfc "runner prereceive $REPOSITORY_BASENAME $REMOTE_USER $oldrev $newrev $refname" /home/$(whoami)/.smartcloud/grids/grid-runner/apps/containers/$REPOSITORY_BASENAME/typescript
12
+ script --quiet --return --flush --command "runner prereceive $REPOSITORY_BASENAME $REMOTE_USER $oldrev $newrev $refname" /home/$(whoami)/.smartcloud/grids/grid-runner/apps/containers/$REPOSITORY_BASENAME/typescript
13
+ if [ "$?" -eq 0 ]; then
14
+ exit 0
15
+ fi
13
16
  exit 1
14
17
  done
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.188
4
+ version: 0.0.189
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-03 00:00:00.000000000 Z
11
+ date: 2019-09-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Smartcloud is a full-stack deployment framework for rails optimized for
14
14
  programmer happiness and peaceful administration. It encourages natural simplicity