J
James Britt
Catapult 0.1.0 has been released
Catapult is a simple WEBrick instance that dynamically loads and
executes objects defined by URL paths.
A Catapult instance assumes URLs follow a known structure:
http://host:8080/classname/path/info/stuff
This sort of translates to calling
load 'Classname.rb'
obj ||= Classname.new()
obj.run( "path/info/stuff" )
(Object caching details have been left out here.)
The results of calling run are then send back via WEBrick.
Catapult came about as a way to write and run simple, Web-based services
without needing to run a particular Web server, or requiring multiple
Ruby interpreters, and without having to restart the server or shutdown
all running services just to reload code for any given service.
See http://catapult.rubyforge.org/ for details and downloading
James Britt
Catapult is a simple WEBrick instance that dynamically loads and
executes objects defined by URL paths.
A Catapult instance assumes URLs follow a known structure:
http://host:8080/classname/path/info/stuff
This sort of translates to calling
load 'Classname.rb'
obj ||= Classname.new()
obj.run( "path/info/stuff" )
(Object caching details have been left out here.)
The results of calling run are then send back via WEBrick.
Catapult came about as a way to write and run simple, Web-based services
without needing to run a particular Web server, or requiring multiple
Ruby interpreters, and without having to restart the server or shutdown
all running services just to reload code for any given service.
See http://catapult.rubyforge.org/ for details and downloading
James Britt