smartcloud 0.0.63 → 0.0.64

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: 60ffcf8723cff346b850754c1699dabddfb77cb2c5da32ade9546d81089d66d1
4
- data.tar.gz: defff013409825d5e260e206c619be0d91bc545ecc9c092d1545ace95ddbf0a6
3
+ metadata.gz: f57d80ab93f419626510b2d56067a8c4173ce23adde538a10486763b7e6f8c93
4
+ data.tar.gz: d1f022edbc76643df042308dc1ac38cdbed53a6fdc14e5af2dbb8c1a60e5ee67
5
5
  SHA512:
6
- metadata.gz: 1a7db48110a4de14f855e7968f56b3bd090902ebbbe2f944e987e61a7fc4c8eb46f0843a03b448e6a4fc6518e01ef3779c3655065699ad43d659e5f0f845b037
7
- data.tar.gz: 668058410b8617e36f62b8a9c121f4912161d16be01cdb4d0e93cd78172545da2bf256805de54aed5ac0e819af1881656efdb11a6210bcb01972e428f2460a0b
6
+ metadata.gz: 75bca97c9abc2b974e06c37eb817226f92ff699b50019f671f1495f53248ce15aedbf8ee11082ada423d6e30f55101b5bb1f2c7d165a7a5c99f3a8e4b17c1249
7
+ data.tar.gz: 5e75c944d1761c25ab2a1429bb656e109d1feaf653da885ff878c5ef1152581d078c77e961f3cdedc7c6c7e6da85f22a79b5a7f48ca09a220e48f3f5e22af80a
@@ -1,23 +1,29 @@
1
1
  class Buildpacker
2
- def initialize
2
+ def initialize
3
+ end
4
+
5
+ def pack
3
6
  puts "---------------------------------------------------------------"
4
-
5
- if File.exist? "bin/rails"
6
- # Remove server.pid if it exists
7
- FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
8
-
9
- puts "-----> Performing bundle install ... "
10
- if system("bundle install")
11
- puts "-----> Compiling Assets ... "
12
- if system("bundle exec rails assets:precompile")
13
- system("foreman start -f Procfile")
14
- end
15
- end
16
- end
7
+
8
+ pack_rails if File.exist? "bin/rails"
17
9
 
18
10
  puts "failed."
19
11
  exit 1
20
12
  end
13
+
14
+ def pack_rails
15
+ # Remove server.pid if it exists
16
+ FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
17
+
18
+ puts "-----> Performing bundle install ... "
19
+ if system("bundle install")
20
+ puts "-----> Compiling Assets ... "
21
+ if system("bundle exec rails assets:precompile")
22
+ system("foreman start -f Procfile")
23
+ end
24
+ end
25
+ end
21
26
  end
22
27
 
23
- Buildpacker.new
28
+ buildpacker = Buildpacker.new
29
+ buildpacker.pack
@@ -296,7 +296,7 @@ module Smartcloud
296
296
  self.stop_app(appname)
297
297
 
298
298
  # Starting Rails App
299
- self.start_rails_app(appname, container_path, container_path_with_now_date)
299
+ self.start_app_rails(appname, container_path, container_path_with_now_date)
300
300
  end
301
301
  end
302
302
  end
@@ -324,7 +324,7 @@ module Smartcloud
324
324
  end
325
325
  end
326
326
 
327
- def self.start_rails_app(appname, container_path, container_path_with_now_date)
327
+ def self.start_app_rails(appname, container_path, container_path_with_now_date)
328
328
  puts "-----> Ruby on Rails Application Detected"
329
329
 
330
330
  # Setup rails env
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.63
4
+ version: 0.0.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard