instance method
Gem::Commands::ExecCommand#install_if_needed
install_if_needed
lib/rubygems/commands/exec_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/commands/exec_command.rb, line 132
def install_if_needed
activate!
rescue Gem::MissingSpecError
verbose "#{Gem::Dependency.new(options[:gem_name], options[:version])} not available locally, installing from remote"
install
activate!
end
No documentation available