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 +4 -4
- data/lib/smartcloud.rb +1 -0
- data/lib/smartcloud/grids/runner.rb +6 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24b3f805e1fd1c1f9997ef327ccefafb104c8ce44a969d681151a2e1344e4d51
|
4
|
+
data.tar.gz: 734a0dfb85808d01e676dad61aaa717408620269d34f7c0463ad05022f305028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cae4c977dd08da48f05963db0453f3ffe2ea20ddfc33698594f2a562653ce767d433a56d12cbc4cea5ba51cfae6b062f95cdecf4de9f48205879c7c0a516cc26
|
7
|
+
data.tar.gz: 7e9d1ef94df2969dd02f753ad2a603d2d3412032cb6491d6a390a53a06c434dddf37aade9af3b3181291cd29c73753398669c61508337d2a8630cf44a5bab78b
|
data/lib/smartcloud.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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"
|