smartcloud 0.0.87 → 0.0.88

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: 3b1673f97b21d059c9ceaadafa350efd5413e5556c44a9647297ac825b2d1197
4
- data.tar.gz: b9a1646eba167ba53fb46a634295193f1b7df68dc890e33d7c98a137bf9b165b
3
+ metadata.gz: 24b3f805e1fd1c1f9997ef327ccefafb104c8ce44a969d681151a2e1344e4d51
4
+ data.tar.gz: 734a0dfb85808d01e676dad61aaa717408620269d34f7c0463ad05022f305028
5
5
  SHA512:
6
- metadata.gz: 19e3a6551e0fe6da922863cc193e52d1ec151bcbfa26b71541fc8aad1dcab3fe887bbb531b95dc9705d70f8981f032a72dab9eef1fb52d1a54ced88acaa5dc5b
7
- data.tar.gz: 10856c7412684a3128487726b321e0c00d846fb373a2e0454413b434d267e2580e21cc4fb014c8a3106192b85433689a0acdf44da04e1c821561edf5d924c2b2
6
+ metadata.gz: cae4c977dd08da48f05963db0453f3ffe2ea20ddfc33698594f2a562653ce767d433a56d12cbc4cea5ba51cfae6b062f95cdecf4de9f48205879c7c0a516cc26
7
+ data.tar.gz: 7e9d1ef94df2969dd02f753ad2a603d2d3412032cb6491d6a390a53a06c434dddf37aade9af3b3181291cd29c73753398669c61508337d2a8630cf44a5bab78b
data/lib/smartcloud.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "ostruct"
2
+ require "logger"
2
3
 
3
4
  # The main Smartcloud driver
4
5
  module Smartcloud
@@ -218,10 +218,12 @@ module Smartcloud
218
218
  end
219
219
 
220
220
  def self.prereceive_app(appname, username, oldrev, newrev, refname)
221
+ logger = Logger.new(STDOUT)
222
+
221
223
  container_path = "#{Smartcloud.config.user_home_path}/.smartcloud/grids/grid-runner/apps/containers/#{appname}"
222
224
 
223
225
  ## Verify the user and ensure the user is correct and has access to this repository
224
- print "-----> Verifying User ... "
226
+ logger.info "-----> Verifying User ... "
225
227
  unless File.exist? "#{container_path}/env"
226
228
  puts "Environment could not be loaded ... Failed."
227
229
  exit 1
@@ -240,12 +242,12 @@ module Smartcloud
240
242
  puts "Unauthorized."
241
243
  exit 1
242
244
  end
243
- puts "done"
245
+ logger.info "done"
244
246
 
245
247
  # Only run this script for the master branch. You can remove this
246
248
  # if block if you wish to run it for others as well.
247
249
  if refname == "refs/heads/master"
248
- print "-----> Initializing Application ... "
250
+ logger.info "-----> Initializing Application ... "
249
251
 
250
252
  # Note: There should be no space between + and " in version.
251
253
  # Note: date will be UTC date until timezone has been changed.
@@ -334,7 +336,7 @@ module Smartcloud
334
336
  end
335
337
 
336
338
  def self.start_app_rails(appname, container_path, container_path_with_version)
337
- puts "-----> Ruby on Rails application detected"
339
+ puts "-----> Ruby on Rails application detected."
338
340
 
339
341
  # Setup rails env
340
342
  env_path = "#{container_path}/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.87
4
+ version: 0.0.88
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timeboard