Ticket #117 (closed enhancement)

Opened 23 months ago

Last modified 20 months ago

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.

Attachments

camping_server_classes.20070121.patch (16.3 kB) - added by mfredrickson 23 months ago.
A patch to break down the bin/camping monolith into several little 'liths

Change History

Changed 23 months ago by mfredrickson

A patch to break down the bin/camping monolith into several little 'liths

Changed 20 months ago by why

  • status changed from new to closed

Yay. Thankyou thankyou forevermoor.

Note: See TracTickets for help on using tickets.