summaryrefslogtreecommitdiff
path: root/task
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-09 19:35:43 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-12 18:51:18 +0200
commit2738666d32b26c7e1e41eb9952ea7fc95c3b63fb (patch)
tree4d74330b815df2d46b2a1cf4d9a40d32fe9a5098 /task
parentfd20dd9bf4d466c71baabcbbb461f83b9d68e788 (diff)
downloadbundler-2738666d32b26c7e1e41eb9952ea7fc95c3b63fb.tar.gz
Support "n" in confirm method
Diffstat (limited to 'task')
-rw-r--r--task/release.rake7
1 files changed, 5 insertions, 2 deletions
diff --git a/task/release.rake b/task/release.rake
index 6a924b91af..54e3cf8caf 100644
--- a/task/release.rake
+++ b/task/release.rake
@@ -75,7 +75,10 @@ namespace :release do
loop do
print(prompt)
print(": ") unless prompt.empty?
- break if $stdin.gets.strip == "y"
+
+ answer = $stdin.gets.strip
+ break if answer == "y"
+ abort if answer == "n"
end
rescue Interrupt
abort
@@ -222,7 +225,7 @@ namespace :release do
print "About to review #{in_release.size} pending PRs. "
- confirm "Continue?"
+ confirm "Continue? (y/n)"
in_release.each do |pr|
url_opener = /darwin/ =~ RUBY_PLATFORM ? "open" : "xdg-open"