Class Methods
::
lib/rubygems/commands/server_command.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/rubygems/commands/server_command.rb, line 6
def initialize
super("server", "Starts up a web server that hosts the RDoc (requires rubygems-server)")
begin
Gem::Specification.find_by_name("rubygems-server").activate
rescue Gem::LoadError
# no-op
end
end
No documentation available
Instance Methods
#
lib/rubygems/commands/server_command.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/rubygems/commands/server_command.rb, line 21
def execute
alert_error "Install the rubygems-server gem for the server command"
end
No documentation available