зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Reuse `sh` helper
https://github.com/rubygems/rubygems/commit/c218d4d79e
This commit is contained in:
Родитель
30b6df4144
Коммит
e97c671b3a
|
@ -98,10 +98,7 @@ module Bundler
|
|||
built_gem_path ||= build_gem
|
||||
cmd = [*gem_command, "install", built_gem_path.to_s]
|
||||
cmd << "--local" if local
|
||||
out, status = sh_with_status(cmd)
|
||||
unless status.success?
|
||||
raise("Running `#{cmd}` failed with the following output:\n\n#{out}\n")
|
||||
end
|
||||
sh(cmd)
|
||||
Bundler.ui.confirm "#{name} (#{version}) installed."
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче