hu 1.6.4 → 1.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hu/deploy.rb +19 -10
- data/lib/hu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c9f8f593da28d57abc1cacbc159c5a349f42773
|
4
|
+
data.tar.gz: 8b64875a8ef6dd8a9c7d211febad66d2239124ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 387f58e52abf0ba4f9a8f3d7a4ec7d90a390dda2b935ecb599c351e85b3ed9d7569e0bcaca2e228c0ac0a368afeb03452bf4e9627a22bd91952950580d5d7a81
|
7
|
+
data.tar.gz: 29dff580a9fb107d95122a32c21675d8271a063b110f2f7a121c946441d904fc16376671ad84a71d815ff1e3fa19a6c5a809e342bbc5fc87c74a88cbde49624b
|
data/lib/hu/deploy.rb
CHANGED
@@ -219,14 +219,14 @@ module Hu
|
|
219
219
|
git_revisions[prod_app_name] != git_revisions[stag_app_name]
|
220
220
|
puts
|
221
221
|
busy 'green green red green is not a legal state', :toggle
|
222
|
-
sleep
|
222
|
+
sleep 1
|
223
223
|
unbusy
|
224
224
|
puts <<-EOM
|
225
225
|
\e[41;33;1m AMBIGUOUS STATE - CAN NOT DETERMINE PHASE OF OPERATION - YOUR REALITY IS INVALID \e[0;33m
|
226
|
+
|
226
227
|
EOM
|
227
228
|
sleep 1
|
228
|
-
|
229
|
-
|
229
|
+
puts <<-EOM
|
230
230
|
_____________
|
231
231
|
( Woah, dude! )
|
232
232
|
-------------
|
@@ -239,15 +239,18 @@ sleep 1
|
|
239
239
|
You have created a situation that hu can't understand.
|
240
240
|
This is most likely due to a \e[1mheroku rollback\e[0m or \e[1mmanipulation of git history\e[0m.
|
241
241
|
|
242
|
-
But don't be
|
243
|
-
\e[32;1m>>> \e[
|
242
|
+
But don't be afraid! Recovery is (usually) easy:
|
243
|
+
\e[32;1m>>> \e[0m 'git commit' a new revision to your local \e[1mdevelop\e[0m branch.
|
244
244
|
|
245
245
|
When hu sees that your develop branch is different from everything else
|
246
|
-
then it can (
|
247
|
-
|
246
|
+
then it can (usually) recover from there.
|
248
247
|
\e[0m
|
249
248
|
EOM
|
250
|
-
|
249
|
+
printf "\e[13A\e[32C\033]1337;RequestAttention=fireworks\a"
|
250
|
+
printf TTY::Cursor.hide
|
251
|
+
sleep 2
|
252
|
+
puts "\e[12B"
|
253
|
+
printf TTY::Cursor.show
|
251
254
|
exit 6
|
252
255
|
end
|
253
256
|
|
@@ -291,16 +294,22 @@ EOM
|
|
291
294
|
end
|
292
295
|
|
293
296
|
if release_branch_exists && git_revisions[:release] == git_revisions[stag_app_name]
|
297
|
+
hyperlink = "\e]8;;#{app['web_url']}\007#{app['web_url']}\e]8;;\007"
|
298
|
+
|
294
299
|
puts ' Phase 2/3 '.inverse + ' Your local ' + "release/#{release_tag}".bright + ' (formerly ' + 'develop'.bright + ') is live on ' + stag_app_name.to_s.bright + '.'
|
295
|
-
puts
|
300
|
+
puts
|
301
|
+
puts ' Please test here: ' + hyperlink.bright
|
302
|
+
puts
|
296
303
|
puts ' If everything looks good you may proceed and finish the release.'
|
297
304
|
puts ' If there are problems: Quit, delete the release branch and start fixing.'
|
298
305
|
puts
|
299
306
|
elsif git_revisions[prod_app_name] != git_revisions[stag_app_name] && !release_branch_exists && git_revisions[:release] != git_revisions[stag_app_name]
|
307
|
+
hyperlink = "\e]8;;#{app['web_url']}\007#{app['web_url']}\e]8;;\007"
|
308
|
+
|
300
309
|
puts ' Phase 3/3 '.inverse + ' HEADS UP! This is the last chance to detect problems.'
|
301
310
|
puts ' The final version of ' + "release/#{release_tag}".bright + ' is now staged.'
|
302
311
|
puts
|
303
|
-
puts ' Test here: ' +
|
312
|
+
puts ' Test here: ' + hyperlink.bright
|
304
313
|
sleep 1
|
305
314
|
puts
|
306
315
|
puts ' This is the exact version that will be promoted to production.'
|
data/lib/hu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- moe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|