mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added help message for gem i webrick in gem server command
This commit is contained in:
parent
b084f8abcf
commit
4ccc66265c
Notes:
git
2020-12-10 18:06:56 +09:00
1 changed files with 7 additions and 1 deletions
|
|
@ -1,5 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
require 'webrick'
|
||||
require 'zlib'
|
||||
require 'erb'
|
||||
require 'uri'
|
||||
|
|
@ -424,6 +423,13 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
|
|||
ERB
|
||||
|
||||
def self.run(options)
|
||||
begin
|
||||
require 'webrick'
|
||||
rescue LoadError
|
||||
puts "webrick is not found. You may need to `gem install webrick` to install webrick."
|
||||
exit
|
||||
end
|
||||
|
||||
new(options[:gemdir], options[:port], options[:daemon],
|
||||
options[:launch], options[:addresses]).run
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue