Ticket #117 (closed enhancement)
Split CampingServer into classes
| Reported by: | mfredrickson | Owned by: | why |
|---|---|---|---|
| Priority: | major | Milestone: | Camping 1.6 |
| Component: | bin/camping | Version: | |
| Keywords: | Cc: |
Description
The attached patch splits the logic that was in the bin/camping into a Camping::Server::Base class with several child classes (Console, Webrick, Mongrel, and Lighttpd). This is mostly a cut and paste job. My fingers are sore from hitting CMD-C, CMD-V so many times.
There are probably a bunch of ways to implement this. I chose to go the parent class - child class route. Perhaps my Java is showing. At the same time, if an object responds to start it can work with the system.
I've been testing this patch with a series of RSpec tests (to be submitted later - they need some clean up themselves). So far, all good, but I'm sure there are bugs.
