| Server IP : 74.208.236.52 / Your IP : 216.73.216.70 Web Server : Apache System : Linux infong527 4.4.400-icpu-115 #2 SMP Mon Jul 6 08:15:05 UTC 2026 x86_64 User : u44043973 ( 5404757) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/lib/ruby/vendor_ruby/rubygems/commands/ |
Upload File : |
# frozen_string_literal: true
require_relative "../command"
unless defined? Gem::Commands::ServerCommand
class Gem::Commands::ServerCommand < Gem::Command
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
def description # :nodoc:
<<-EOF
The server command has been moved to the rubygems-server gem.
EOF
end
def execute
alert_error "Install the rubygems-server gem for the server command"
end
end
end