diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-07-30 13:43:37 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-07-30 13:43:37 +0100 |
commit | f17c8b940681250dacd0154033525658ad5c0a08 (patch) | |
tree | c623a98f8d50b2576de7f785a391ef0e9ff1865f /lib/sisu/v0/sysenv.rb | |
parent | processed number added for urls and remote placement (diff) |
replace unintended tabs with spaces
Diffstat (limited to 'lib/sisu/v0/sysenv.rb')
-rw-r--r-- | lib/sisu/v0/sysenv.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sisu/v0/sysenv.rb b/lib/sisu/v0/sysenv.rb index 91e03459..10ec5e33 100644 --- a/lib/sisu/v0/sysenv.rb +++ b/lib/sisu/v0/sysenv.rb @@ -1328,13 +1328,13 @@ module SiSU_Env "#{http}#{@rc['webserv_cgi']['host']}:#{webserv_port_cgi}/#@stub_pwd" else "#{http}#{@rc['webserv_cgi']['host']}/#@stub_pwd" end - else + else http=webserv_host_base=~/http:\/\// ? '' : 'http://' if webserv_port_cgi "#{http}#{webserv_host_base}:#{webserv_port_cgi}/#@stub_pwd" else "#{http}#{webserv_host_base}/#@stub_pwd" end - end + end end def webserv_base_cgi #web url for local webserv (localhost, or hostname) if defined? @rc['webserv_cgi']['host'] and not @rc['webserv_cgi']['host'].nil? @@ -1343,13 +1343,13 @@ module SiSU_Env "#{http}#{@rc['webserv_cgi']['host']}:#{webserv_port_cgi}" else "#{http}#{@rc['webserv_cgi']['host']}" end - else + else http=webserv_host_base=~/http:\/\// ? '' : 'http://' if webserv_port_cgi "#{http}#{webserv_host_base}:#{webserv_port_cgi}" else "#{http}#{webserv_host_base}" end - end + end end def webrick #must have a port #REMOVE #port=":#{webserv_port_cgi}" @@ -1362,7 +1362,7 @@ module SiSU_Env elsif webserv_host_base and not webserv_host_base.nil? "#{http}#{webserv_host_base}" else "#{http}localhost" - end + end end def webserv #web url for local webserv (localhost, or hostname) if path.webserv_dir and path.webserv =~ /#{path.webserv_dir}/ #revisit @@ -2451,7 +2451,7 @@ module SiSU_Env end end filename_homepage=File.new("#{@env.path.webserv}/#{@env.path.stub_pwd}/index.html",'w') - filename_homepage_toc=File.new("#{@env.path.webserv}/#{@env.path.stub_pwd}/toc.html",'w') + filename_homepage_toc=File.new("#{@env.path.webserv}/#{@env.path.stub_pwd}/toc.html",'w') filename_homepage << @vz_home.index filename_homepage_toc << @vz_home.index end |