diff options
author | Rick Bradley <rick@rickbradley.com> | 2008-03-31 11:59:16 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-04-11 13:10:35 -0500 |
commit | 7a7343458402e493f690633f3cfa78abef316d28 (patch) | |
tree | 9ed3ef94f2816c34a95b6c16193ab8bfafe71fc5 /lib/puppet/parser/compiler.rb | |
parent | a1c45790f6cac265a7bac7d63bfb8a3204ed228f (diff) | |
download | puppet-7a7343458402e493f690633f3cfa78abef316d28.tar.gz puppet-7a7343458402e493f690633f3cfa78abef316d28.tar.xz puppet-7a7343458402e493f690633f3cfa78abef316d28.zip |
Much larger commit than I would like to land at once. This is all REST-related code. Two specs are failing related to how Mongrel is initialized for REST; will fix those shortly.
REST indirector now supports find, with deserialization. Network code in indirector now. Will still need to un-hardwire address/port for outbound connections. Will still need to urlencode path parameters.
Code for search, destroy, update is coming, should be similar to find.
Reworked how the Handler module is used. Needed to be included, rather than inherited. Needed to sidestep initializers for actual web servers (webrick, mongrel), needed to be possible to have handler-including class be used as a class (aka servlet) instead of as an instance.
Webrick handler registration is now abstracted to "above" the servlet.
Provided a #model method to use instead of @model in handler module. This allows neutering during testing.
Brought class_for_protocol up into http/webrick class as a (tested) class method.
Integration tests for rest indirection. Split server integration tests into mongrel and webrick tests.
Got Node/REST working properly wrt the crazy-ass autoloader thing.
We're now actually passing traffic w/ webrick, fwiw.
Diffstat (limited to 'lib/puppet/parser/compiler.rb')
0 files changed, 0 insertions, 0 deletions