Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::Util.silent_system
silent_system(*command)
lib/rubygems/util.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/util.rb, line 62
def self.silent_system(*command)
opt = { out: IO::NULL, err: [:child, :out] }
if Hash === command.last
opt.update(command.last)
cmds = command[0...-1]
else
cmds = command.dup
end
system(*(cmds << opt))
end
Invokes system, but silences all output.