My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'webrick'
require 'LoanEntry'
require 'Loan'
require 'Payment'
require 'LoanEntry'
require 'PaymentSchedule'

include WEBrick

def start_WEBrick(config = {})
config.update(:Port => 8181)
server = HTTPServer.new(config)
server.mount("/loan", LoanEntry)
yield server if block_given?
['INT', 'TERM'].each {|signal|
trap(signal) {server.shutdown}
}
server.start
end

start_WEBrick(:DocumentRoot => "./var/www")

Change log

r54 by pragkirk on Apr 8, 2009   Diff
Initial Checkin
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 469 bytes, 21 lines

File properties

svn:executable
Powered by Google Project Hosting