End of Life Ruby 3.1 has reached end of life and gets no more fixes. 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.1.3/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.