smartcloud 0.0.161 → 0.0.162

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: 6824dc9f17f066707931a6cbfcadb5535b6a876cab8ddcf251caa22153e83624
4
- data.tar.gz: c3c6da13077f6d74ab0ebe23d5443c7b0f8cb88588989998e16dd4586d889ba5
3
+ metadata.gz: baf79aac78353757357ec423418b2d68cd71e48dcdc5adc3c403f20a5c67a393
4
+ data.tar.gz: 2d7f15ae683490d9a4f59b0d80e7c99398493e25e0ecdd3859c93cb7fbdf27a7
5
5
  SHA512:
6
- metadata.gz: bb1de89ac35883c974d4bf28d9a410e84a8b31e424b32213b3d2a7d80ee2e1b8a6d9d85d51b8b3b8f05a479c1e0f288f349e306d561d378b347537a7e2e2bbc7
7
- data.tar.gz: 81b19d72a869a77bcc7145fbd5c7695a29205c79a1ff27e8707138ba36ad675da6ed0ebe31658d385e70b06f4dd4864edb5e970198f905b7370e09b321509b52
6
+ metadata.gz: 66ef4183459fce92ebafe55776f065e15dd4d0d56b772a0b80bc1ba59d5f4f7e31f0ec38b7c4ebb1238424ae2cbd46d871d38de912fd6f11f0faab30d4cd49b9
7
+ data.tar.gz: f67226982bcf81d4437701b5d96fc6d6ea769d8dd08799fa4364a71a442353fb73d1f87053c7a54a21c69db869a09cb5ec915c37646226a5762e8924328725cd
@@ -3,6 +3,6 @@
3
3
  require 'smartcloud'
4
4
 
5
5
  if ARGV[0] == 'start'
6
- buildpacker = Smartcloud::Buildpacker.new
6
+ buildpacker = Smartcloud::Grids::Buildpacker.new
7
7
  buildpacker.pack
8
8
  end
@@ -0,0 +1,30 @@
1
+ module Smartcloud
2
+ module Grids
3
+ class Buildpacker < Smartcloud::Base
4
+ def initialize
5
+ end
6
+
7
+ def pack
8
+ pack_rails if File.exist? "bin/rails"
9
+ logger.info "Could not continue ... Launch Failed."
10
+ end
11
+
12
+ def pack_rails
13
+ # Remove server.pid if it exists
14
+ FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
15
+
16
+ logger.info "Performing bundle install ..."
17
+ if system("bundle install --deployment --clean")
18
+ logger.info "Installing Javascript Dependencies & Pre-compiling Assets ..."
19
+ if system("bundle exec rails assets:precompile", out: File::NULL)
20
+ logger.debug "Starting Server ..."
21
+ if system("god -c Godfile -D")
22
+ logger.info "Launched Application ... Success."
23
+ end
24
+ # exit 0
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
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.161
4
+ version: 0.0.162
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard
@@ -29,8 +29,9 @@ files:
29
29
  - lib/smartcloud.rb
30
30
  - lib/smartcloud/base.rb
31
31
  - lib/smartcloud/boot.rb
32
- - lib/smartcloud/buildpacker.rb
33
32
  - lib/smartcloud/docker.rb
33
+ - lib/smartcloud/grids/buildpacker.rb
34
+ - lib/smartcloud/grids/grid-buildpacker/.keep
34
35
  - lib/smartcloud/grids/grid-mysql/docker-entrypoint-initdb.d/.keep
35
36
  - lib/smartcloud/grids/grid-nginx/fastcgi.conf
36
37
  - lib/smartcloud/grids/grid-nginx/nginx.tmpl
@@ -54,6 +55,7 @@ files:
54
55
  - lib/smartcloud/logger.rb
55
56
  - lib/smartcloud/machine.rb
56
57
  - lib/smartcloud/templates/dotsmartcloud/config/environment.rb
58
+ - lib/smartcloud/templates/dotsmartcloud/grids/grid-buildpacker/.keep
57
59
  - lib/smartcloud/templates/dotsmartcloud/grids/grid-mysql/data/.keep
58
60
  - lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/certificates/.keep
59
61
  - lib/smartcloud/templates/dotsmartcloud/grids/grid-nginx/htpasswd/.keep
@@ -1,28 +0,0 @@
1
- module Smartcloud
2
- class Buildpacker < Smartcloud::Base
3
- def initialize
4
- end
5
-
6
- def pack
7
- pack_rails if File.exist? "bin/rails"
8
- logger.info "Could not continue ... Launch Failed."
9
- end
10
-
11
- def pack_rails
12
- # Remove server.pid if it exists
13
- FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
14
-
15
- logger.info "Performing bundle install ..."
16
- if system("bundle install --deployment --clean")
17
- logger.info "Installing Javascript Dependencies & Pre-compiling Assets ..."
18
- if system("bundle exec rails assets:precompile", out: File::NULL)
19
- logger.debug "Starting Server ..."
20
- if system("god -c Godfile -D")
21
- logger.info "Launched Application ... Success."
22
- end
23
- # exit 0
24
- end
25
- end
26
- end
27
- end
28
- end