[rubygems/rubygems] Add gem exec description

https://github.com/rubygems/rubygems/commit/dac1609fd5
This commit is contained in:
Samuel Giddins 2023-02-05 22:08:38 -08:00 коммит произвёл git
Родитель d81be0609b
Коммит 3f0f9a7942
1 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -34,9 +34,19 @@ class Gem::Commands::ExecCommand < Gem::Command
"--version '#{Gem::Requirement.default}'"
end
# TODO(segiddins): add a proper description!
def description # :nodoc:
<<-EOF
The exec command handles installing (if necessary) and running an executable
from a gem, regardless of whether that gem is currently installed.
The exec command can be thought of as a shortcut to running `gem install` and
then the executable from the installed gem.
For example, `gem exec rails new .` will run `rails new .` in the current
directory, without having to manually run `gem install rails`.
Additionally, the exec command ensures the most recent version of the gem
is used (unless run with `--conservative`), and that the gem is not installed
to the same gem path as user-installed gems.
EOF
end