hu 1.5.12 → 1.5.13
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 +37 -0
- 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: c8225fbda641918d6a6477ebc7473cc12c1e99f9
|
4
|
+
data.tar.gz: 77fa92fa33d9decddc38e24e6614fd665b058e84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f777c9885cb4c2b1e964949b3007fd69a977533fafd4a45c779adc5aa6399ea154abfc6482f2928d49ec81e7608d5bc9461284fb8f3e88d095e7a57c234836d5
|
7
|
+
data.tar.gz: 436d36a2fad2f92ed6caefd3fda93523804e1958e9969a08fa046dba8db5aca03f56008810e2d68b102cb68a6e22ac2a701448cb0d36d98c9ae62d49fac2b1d5
|
data/lib/hu/deploy.rb
CHANGED
@@ -214,6 +214,43 @@ module Hu
|
|
214
214
|
clearscreen = true
|
215
215
|
loop do
|
216
216
|
git_revisions = show_pipeline_status(pipeline_name, stag_app_name, prod_app_name, release_tag, clearscreen)
|
217
|
+
|
218
|
+
if git_revisions[:develop] == `git rev-parse master`[0..5] && git_revisions[:develop] == git_revisions[prod_app_name] &&
|
219
|
+
git_revisions[prod_app_name] != git_revisions[stag_app_name]
|
220
|
+
puts
|
221
|
+
busy 'green green red green is not a legal state', :toggle
|
222
|
+
sleep 3
|
223
|
+
unbusy
|
224
|
+
puts <<-EOM
|
225
|
+
\e[41;33;1m AMBIGUOUS STATE - CAN NOT DETERMINE PHASE OF OPERATION - YOUR REALITY IS INVALID \e[0;33m
|
226
|
+
EOM
|
227
|
+
sleep 1
|
228
|
+
puts <<-EOM
|
229
|
+
|
230
|
+
_____________
|
231
|
+
( Woah, dude! )
|
232
|
+
-------------
|
233
|
+
\\ ^__^
|
234
|
+
\\ (oo)\\_______
|
235
|
+
(__)\\ )\\/\\
|
236
|
+
||----w |
|
237
|
+
|| ||
|
238
|
+
\e[0m
|
239
|
+
You have created a situation that hu can't understand.
|
240
|
+
This is most likely due to a \e[1mheroku rollback\e[0m or \e[1mmanipulation of git history\e[0m.
|
241
|
+
|
242
|
+
But don't be scared. Recovery is (normally) easy:
|
243
|
+
\e[32;1m>>> \e[0mJust 'git commit' a new revision to your local \e[1mdevelop\e[0m branch.
|
244
|
+
|
245
|
+
When hu sees that your develop branch is different from everything else
|
246
|
+
then it can (normally) recover from there.
|
247
|
+
|
248
|
+
\e[0m
|
249
|
+
EOM
|
250
|
+
sleep 3
|
251
|
+
exit 6
|
252
|
+
end
|
253
|
+
|
217
254
|
clearscreen = true
|
218
255
|
|
219
256
|
changelog = 'Initial revision'
|
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.5.
|
4
|
+
version: 1.5.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- moe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|