Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Command#invoke_with_build_args
invoke_with_build_args(args, build_args)
lib/rubygems/command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/command.rb, line 311
def invoke_with_build_args(args, build_args)
handle_options args
options[:build_args] = build_args
if options[:silent]
old_ui = ui
self.ui = ui = Gem::SilentUI.new
end
if options[:help]
show_help
elsif @when_invoked
@when_invoked.call options
else
execute
end
ensure
if ui
self.ui = old_ui
ui.close
end
end
Invoke the command with the given list of normal arguments and additional build arguments.
See also
#invoke
#merge_options
#handles?
#option_is_deprecated?
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0