Sha256: 2c305f7d69beba5de7150bd9629de8b4d9115e1d6cf48dd96d87577adc3f24c9

Contents?: true

Size: 649 Bytes

Versions: 32

Compression:

Stored size: 649 Bytes

Contents

# 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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
rubygems-update-3.6.3 lib/rubygems/commands/server_command.rb
rubygems-update-3.6.2 lib/rubygems/commands/server_command.rb
rubygems-update-3.6.1 lib/rubygems/commands/server_command.rb
rubygems-update-3.6.0 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.23 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.22 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.21 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.20 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.19 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.18 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.17 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.16 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.15 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.14 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.13 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.12 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.10 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.9 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.8 lib/rubygems/commands/server_command.rb
rubygems-update-3.5.7 lib/rubygems/commands/server_command.rb