hu 1.5.10 → 1.5.11
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/hu/deploy.rb +27 -20
- data/lib/hu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96baaa904903f82d9d5f2d4cc918746044c9ba08
|
4
|
+
data.tar.gz: c6cabff7673f6b19fc6e3c0fff0716afc2dd2c0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccef6f36d02ef9fa6029cd4438e705970415c987bb744815ce76194243f2fc973d67b109b1cc5bfb70e92bc409ffd8299ed98eef590ff89d645d08441355eb61
|
7
|
+
data.tar.gz: 2f9db5a1f8486253870d6c3efcfc9f28c869df5432f59a49bd2ef01fbe095c90092990da94b07dab5d44102d0e0cf063b0a991b629dc989b477d7b0f664638ad
|
data/lib/hu/deploy.rb
CHANGED
@@ -271,32 +271,37 @@ module Hu
|
|
271
271
|
puts
|
272
272
|
end
|
273
273
|
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
if release_branch_exists
|
282
|
-
unless release_tag == tiny_bump
|
283
|
-
menu.choice "Change to PATCH release (bugfix only) #{highest_version} -> #{tiny_bump}", :bump_tiny
|
274
|
+
begin
|
275
|
+
choice = prompt.select('>') do |menu|
|
276
|
+
menu.enum '.'
|
277
|
+
menu.choice 'Refresh', :refresh
|
278
|
+
menu.choice 'Quit', :abort_ask
|
279
|
+
unless git_revisions[:release] == git_revisions[stag_app_name] || !release_branch_exists
|
280
|
+
menu.choice "Push release/#{release_tag} to #{stag_app_name}", :push_to_staging
|
284
281
|
end
|
282
|
+
if release_branch_exists
|
283
|
+
unless release_tag == tiny_bump
|
284
|
+
menu.choice "Change to PATCH release (bugfix only) #{highest_version} -> #{tiny_bump}", :bump_tiny
|
285
|
+
end
|
285
286
|
|
286
|
-
|
287
|
-
|
288
|
-
|
287
|
+
unless release_tag == minor_bump
|
288
|
+
menu.choice "Change to MINOR release (new features) #{highest_version} -> #{minor_bump}", :bump_minor
|
289
|
+
end
|
289
290
|
|
290
|
-
|
291
|
-
|
292
|
-
|
291
|
+
unless release_tag == major_bump
|
292
|
+
menu.choice "Change to MAJOR release (breaking changes) #{highest_version} -> #{major_bump}", :bump_major
|
293
|
+
end
|
293
294
|
|
294
|
-
|
295
|
-
|
295
|
+
if git_revisions[:release] == git_revisions[stag_app_name]
|
296
|
+
menu.choice 'Finish release (merge, tag and final stage)', :finish_release
|
297
|
+
end
|
298
|
+
elsif git_revisions[prod_app_name] != git_revisions[stag_app_name]
|
299
|
+
menu.choice "DEPLOY (promote #{stag_app_name} to #{prod_app_name})", :DEPLOY
|
296
300
|
end
|
297
|
-
elsif git_revisions[prod_app_name] != git_revisions[stag_app_name]
|
298
|
-
menu.choice "DEPLOY (promote #{stag_app_name} to #{prod_app_name})", :DEPLOY
|
299
301
|
end
|
302
|
+
rescue TTY::Prompt::Reader::InputInterrupt
|
303
|
+
choice = :abort
|
304
|
+
puts "\n\n"
|
300
305
|
end
|
301
306
|
|
302
307
|
case choice
|
@@ -354,6 +359,8 @@ module Hu
|
|
354
359
|
end
|
355
360
|
when :refresh
|
356
361
|
puts
|
362
|
+
when :abort
|
363
|
+
exit 0
|
357
364
|
end
|
358
365
|
end
|
359
366
|
end
|
data/lib/hu/version.rb
CHANGED