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