diff options
Diffstat (limited to 'lib/sisu/v3/webrick.rb')
-rw-r--r-- | lib/sisu/v3/webrick.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/sisu/v3/webrick.rb b/lib/sisu/v3/webrick.rb index ba324fff..55157c4f 100644 --- a/lib/sisu/v3/webrick.rb +++ b/lib/sisu/v3/webrick.rb @@ -1,4 +1,4 @@ -# coding: utf-8 +# encoding: utf-8 =begin * Name: SiSU @@ -64,15 +64,15 @@ def brick(port,get='') port=SiSU_Env::Info_port.new.webrick begin s=HTTPServer.new( - :Port => port, - :DocumentRoot => Dir::pwd + '/htdocs', - :CGIPathEnv => ENV['PATH'] + Port: port, + DocumentRoot: Dir::pwd + '/htdocs', + CGIPathEnv: ENV['PATH'] ) cgi_dir=File.expand_path(cgidir) @mount.each { |x,y| # mount subdirectories s.mount(x, HTTPServlet::FileHandler, y, true) } - s.mount('/cgi-bin', HTTPServlet::FileHandler, cgi_dir, {:FancyIndexing=>true}) + s.mount('/cgi-bin', HTTPServlet::FileHandler, cgi_dir, { FancyIndexing: true }) trap("INT"){ s.shutdown } s.start rescue; SiSU_Errors::Info_error.new($!,$@,'-W',nil).error #fix @@ -85,7 +85,7 @@ begin # require 'time' require 'fileutils' include FileUtils - require "#{SiSU_lib}/sysenv" # sysenv.rb + require_relative 'sysenv' # sysenv.rb include SiSU_Env; include SiSU_Screen @cX=SiSU_Screen::Ansi.new('yes').cX @env=SiSU_Env::Info_env.new @@ -169,7 +169,7 @@ WOK get=@argv.shift if @argv[0] =~/pwd/ #% argv brick(@port,get) rescue; - require "#{SiSU_lib}/sysenv" # sysenv.rb + require_relative 'sysenv' # sysenv.rb SiSU_Errors::Info_error.new($!,$@,'-W',nil).error #fix ensure end |