diff options
author | David RodrÃguez <[email protected]> | 2019-06-11 11:45:09 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2019-08-03 09:29:55 +0900 |
commit | a685a8643f3897913aa0aeeca3f1392bb9da1cf8 (patch) | |
tree | 0a03d43188618f9a94d0c8346d4a77b7bba068f3 /lib | |
parent | 51bdc9433b92b60806ac535e291bf3fffd243e47 (diff) |
[bundler/bundler] Fix `rake release` not prompting for OTP code
Co-authored-by: Colby Swandale <[email protected]>
Co-authored-by: Kevin Deisz <[email protected]>
https://github.com/bundler/bundler/commit/1b2bbc7364
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/gem_helper.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb index 33f1d51592..68f5e636ff 100644 --- a/lib/bundler/gem_helper.rb +++ b/lib/bundler/gem_helper.rb @@ -106,7 +106,7 @@ module Bundler unless allowed_push_host || Bundler.user_home.join(".gem/credentials").file? raise "Your rubygems.org credentials aren't set. Run `gem push` to set them." end - sh(gem_command) + sh_with_input(gem_command) Bundler.ui.confirm "Pushed #{name} #{version} to #{gem_push_host}" end @@ -180,6 +180,13 @@ module Bundler gemspec.name end + def sh_with_input(cmd) + Bundler.ui.debug(cmd) + SharedHelpers.chdir(base) do + abort unless Kernel.system(*cmd) + end + end + def sh(cmd, &block) out, status = sh_with_status(cmd, &block) unless status.success? |