instance method
Gem::Commands::ExecCommand#print_command
print_command
lib/rubygems/commands/exec_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/commands/exec_command.rb, line 121
def print_command
verbose "running #{program_name} with:\n"
opts = options.reject {|_, v| v.nil? || Array(v).empty? }
max_length = opts.map {|k, _| k.size }.max
opts.each do |k, v|
next if v.nil?
verbose "\t#{k.to_s.rjust(max_length)}: #{v}"
end
verbose ""
end
No documentation available
See also
#load!
#set_gem_exec_install_paths
#install_if_needed
#suppress_always_install
also in
4.1 · 3.4 · 3.3