mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[bundler/bundler] Fix rake release
not prompting for OTP code
Co-authored-by: Colby Swandale <me@colby.fyi>
Co-authored-by: Kevin Deisz <kevin.deisz@gmail.com>
1b2bbc7364
This commit is contained in:
parent
51bdc9433b
commit
a685a8643f
2 changed files with 15 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue