In Files

  • rubygems/commands/server_command.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

Gem::Commands::ServerCommand

Public Class Methods

new() click to toggle source
 
               # File rubygems/commands/server_command.rb, line 5
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
            

Public Instance Methods

execute() click to toggle source
 
               # File rubygems/commands/server_command.rb, line 20
def execute
  alert_error "Install the rubygems-server gem for the server command"
end
            
There is an updated format of the API docs for this version here.