End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::CommandManager#run
run(args, build_args=nil)
lib/rubygems/command_manager.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/command_manager.rb, line 148
def run(args, build_args=nil)
process_args(args, build_args)
rescue StandardError, Timeout::Error => ex
if ex.respond_to?(:detailed_message)
msg = ex.detailed_message(highlight: false).sub(/\A(.*?)(?: \(.+?\))/) { $1 }
else
msg = ex.message
end
alert_error clean_text("While executing gem ... (#{ex.class})\n #{msg}")
ui.backtrace ex
terminate_interaction(1)
rescue Interrupt
alert_error clean_text("Interrupted")
terminate_interaction(1)
end
Run the command specified by args.
See also
#register_command
#unregister_command
#process_args
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0