class Gem::Commands::ServerCommand - Documentation for Ruby 4.0
Description: Documentation for the Gem::Commands::ServerCommand class
Keywords: ruby,class,Gem::Commands::ServerCommand

🔍

No recent searches

# class Gem::Commands::ServerCommand

### Public Class Methods

new ()
Source

    # File lib/rubygems/commands/server_command.rb, line 7
    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

Calls superclass method `Gem::Command::new`

### Public Instance Methods

execute ()
Source

    # File lib/rubygems/commands/server_command.rb, line 22
    def execute
      alert_error "Install the rubygems-server gem for the server command"
    end