summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Refactored to use a Handler base class for server+protocol handlers. ↵Rick Bradley2007-10-164-58/+76
| | | | | | | | | | | | | | | | | | | | | | | | Finally eliminated dependency on Puppet.start, etc., from WEBrick HTTP server class. {webrick,mongrel}+REST now support request handling uniformly; need encode/decode next.
| * | | | | Inlined the controller, eliminating a class. Mongrel+REST has the right ↵Rick Bradley2007-10-162-33/+42
| | | | | | | | | | | | | | | | | | | | | | | | bits for request handling prior to the encode/decode/exception-handling bits. Refactored to make the common logic extractable to a base class.
| * | | | | Registration now built for {webrick,mongrel} REST handlers.Rick Bradley2007-10-162-4/+16
| | | | | |
| * | | | | Going back to each server+protocol object being responsible for only one ↵Rick Bradley2007-10-164-14/+10
| | | | | | | | | | | | | | | | | | | | | | | | indirection, as the REST vs. XMLRPC models are different enough that the object must register itself on initialization and handle the request when it comes in.
| * | | | | First pass through initializers of {mongrel, webrick} REST handlers; hooks ↵Rick Bradley2007-10-165-7/+39
| | | | | | | | | | | | | | | | | | | | | | | | into Indirection to look up models from indirected names.
| * | | | | Minor tweaks to make the ::Server initialization a bit more robust. Fail on ↵Rick Bradley2007-10-161-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | unknown HTTP Server types; fail fast.
| * | | | | Finish front end of delegation to server+protocol helper classes ("handlers").Rick Bradley2007-10-156-9/+26
| | | | | |
| * | | | | Bringing in initial handlers for server+protocol pairs.Rick Bradley2007-10-152-12/+19
| | | | | |
| * | | | | Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-1518-25/+55
| |\ \ \ \ \
| * | | | | | Partial support for building Handlers for all handler-protocol pairs.Rick Bradley2007-10-152-2/+43
| | | | | | |
| * | | | | | Implementing address & port support for new webrick server.Rick Bradley2007-10-151-2/+6
| | | | | | |
| * | | | | | Hooking up address/port support for the various servers w/ specs. Still ↵Rick Bradley2007-10-153-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | need to start up a webrick server w/ address + port (this is far too incestuous with Puppet lib & Puppet.start at the moment).
| * | | | | | trivial: WEBRick -> WEBrick, to be more consistent with how the WEBrick ruby ↵Rick Bradley2007-10-152-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | classes are named.
| * | | | | | Implementing listening state tracking for webrick and mongrel.Rick Bradley2007-10-152-4/+13
| | | | | | |
| * | | | | | More unit specs for mongrel and webrick; more code to make them work, yo.Rick Bradley2007-10-153-3/+41
| | | | | | |
| * | | | | | Pushing functionality down to webrick/mongrel classes now; cleanup in the ↵Rick Bradley2007-10-154-22/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | base server / http server classes + specs.
| * | | | | | Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-1313-83/+146
| |\ \ \ \ \ \
| * | | | | | | more stuff for the interim commitRick Bradley2007-10-122-0/+48
| | | | | | | |
| * | | | | | | interim checkin of network stuffsRick Bradley2007-10-121-53/+45
| | | | | | | |
* | | | | | | | Adding unit tests for the module that handles theLuke Kanies2007-11-081-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | logic around mounting and unmounting. This includes a fix for bug #761, which required a different regex for Solaris.
* | | | | | | | Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppetLuke Kanies2007-11-084-5/+14
|\ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ Merge commit 'davids-bugfixes/rest/fix-760'Luke Kanies2007-11-081-0/+2
| |\ \ \ \ \ \ \ \
| | * | | | | | | | fix #760: property_fix has to be called after creating a symlinkDavid Schmitt2007-11-081-0/+2
| | | | | | | | | |
| * | | | | | | | | Merge commit 'davids-bugfixes/rest/fix-731'Luke Kanies2007-11-081-1/+2
| |\ \ \ \ \ \ \ \ \
| | * | | | | | | | | fix #731: add exported=true to collect_exportedDavid Schmitt2007-11-081-1/+2
| | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this just adds the patch from the bugreport
| * | | | | | | | | Switching the class resource evaluation to only happenLuke Kanies2007-11-082-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when using :include, not (for example) when evaluating node classes.
| * | | | | | | | | Classes once again get evaluated immediately when theLuke Kanies2007-11-081-0/+1
| | |_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'include' function is used, instead of being lazy-evaluated. Previous work caused resources to get created to model these classes, but in the process, I removed the fact that the classes were evaluated immediately. This meant that you couldn't guarantee that a class was evaluated before you went to use its variables.
* / | | | | | | | Fixing the 'mount' tests so that they no longerLuke Kanies2007-11-081-10/+10
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modify the local system and they run fine as non-root users.
* | | | | | | | Switching the base class for the Relationship class.Luke Kanies2007-11-082-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was previously using the GRATR::Edge class, which had wonky overrides that dramatically slowed down sorting (its hash mechanism hashed the source and target so that edges with the same source/target got the same hash, which we actually don't want any more). This shouldn't change any functionality, just performance. I didn't retain all functionality from the Edge class, but a lot of that functionality was, um, horrible, like Edge[] being equivalent to Edge.new.
* | | | | | | | Merge branch 'rest'Luke Kanies2007-11-087-41/+293
|\| | | | | | |
| * | | | | | | Switching the graph base class from GRATR::DigraphLuke Kanies2007-11-074-16/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to Puppet::SimpleGraph, which should dramatically enhance performance. It should be largely functionally equivalent, with the only difference being that edges are no longer deduplicated.
| * | | | | | | Adding a new graphing base class, because the GRATR stuffLuke Kanies2007-11-071-0/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is just too slow. This class has just about no iteration, and vertex deletation is dramatically (as in, 1000x) faster). Here are the results of some very simplistic graph operations: Vertex tests (add and remove 1000 vertices): gratr: Add: 0.01; Remove: 9.70 simple: Add: 0.02; Remove: 0.01 Edge tests (add and remove 1000 edges): gratr: Add: 0.02; Remove: 0.03 simple: Add: 0.07; Remove: 0.02 I expect I can get the cost of the edge addition down some, but even as it is, it's a couple of orders of magnitude faster. This doesn't even count things like searching, which I did some other testing on and got consistently faster results (somewhere between 1.5x and 1500x faster, depending on how the test was set up and how big the graph was).
| * | | | | | | Caching the 'parent' value, which resulted inLuke Kanies2007-10-311-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a drastic performance increase. However, profiling has shown that GRATR just isn't going to cut it. I think I'm going to have to replace it as my graphing base class to avoid the horrible, horrible performance I keep encountering.
| * | | | | | | The configurations should now be functional again --Luke Kanies2007-10-313-13/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | file recursion was previously not working, because the relationship graph was setting itself as a resource's primary configuration, which caused it to try creating its own relationship graph. I've now found that the current code is about 5x slower than the released code, so now I hope to resolve that.
| * | | | | | | Fixing a bit of indentation and commenting in the xmlrpc/client fileLuke Kanies2007-10-291-4/+3
| | |_|_|_|_|/ | |/| | | | |
* / | | | | | Adding patch from #879 by timLuke Kanies2007-10-261-2/+2
|/ / / / / /
* | | | | | File serving should work now, both recursive andLuke Kanies2007-10-2412-55/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | single files, across modules, local file system, and the traditional file server. This work revolves around making sure that the termini produce functional file instances, meaning that they know how to find their content or metadata, which largely comes down to setting their paths correctly. I also created a new terminus base class for the local filesystem, since there was so much common code between content and metadata.
* | | | | | Adding post- hooks for :find and :search in the indirection class.Luke Kanies2007-10-231-1/+8
| | | | | |
* | | | | | Adding the calls to the authorization hooks in the Indirection.Luke Kanies2007-10-231-0/+16
| | | | | |
* | | | | | Renaming the FileServing TerminusSelector module to IndirectionHooks,Luke Kanies2007-10-223-5/+5
| |_|_|_|/ |/| | | | | | | | | | | | | | because I'm going to add some hooks for transforming returned objects.
* | | | | Renaming the :local termini for metadata and contentLuke Kanies2007-10-223-4/+4
| | | | | | | | | | | | | | | | | | | | to :file.
* | | | | Link handling is now in the file serving classes.Luke Kanies2007-10-227-32/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was done by putting all of the functionality in the Content and Metadata class (actually, in a new base class for them). There are still some issues, and there need to be integration tests between the :local (soon to be renamed :file) termini for these classes.
* | | | | Adding searchability to the fileserving termini, using theLuke Kanies2007-10-226-21/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new Fileset class. The tests aren't the cleanest, in that there is still a good bit of duplication in them, but it's what we got.
* | | | | Adding a Fileset class for managing sets of files. ThisLuke Kanies2007-10-221-0/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is the new server-side for file recursion, and I'll next be hooking it to the fileserving 'search' methods. This is basically a mechanism for abstracting that search functionality into a single class.
* | | | | Merge branch 'master' of git://michaelobrien.info/puppet into michaelLuke Kanies2007-10-223-0/+44
|\ \ \ \ \
| * | | | | Partial work done for ssl certificates.Michael V. O'Brien2007-10-193-0/+44
| | | | | |
* | | | | | Adding authorization hooks to the file_server andLuke Kanies2007-10-215-15/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | module_files indirection terminus types. Both hooks use the fileserver configuration, but the module_files hook only uses the 'modules' mount. Also moved all responsibility for knowing whether to use the 'modules' terminus type to the terminus selector; it was previously spread between that and the file_server terminus, which made some things annoyingly complicated. This normalizes the deprecation notices and the logic about how we make these decisions.
* | | | | | Renaming the 'mounts' terminus to 'file_server', and renamingLuke Kanies2007-10-203-5/+5
| |_|_|_|/ |/| | | | | | | | | | | | | | tests accordingly.
* | | | | File serving now works. I've tested a couple of ways toLuke Kanies2007-10-1916-113/+152
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use it, and added integration tests at the most important hook points. This provides the final class structure for all of these classes, but a lot of the class names are pretty bad, so I'm planning on going through all of them (especially the file_server stuff) and renaming. The functionality is all here for finding files, though (finally). Once the classes are renamed, I'll be adding searching ability (which will enable the recursive file copies) and then adding the link management and enabling ignoring files.
* | | | I've now split the file-serving termini into two separate types (inLuke Kanies2007-10-1810-40/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | addition to Rest): A local terminus that just uses direct file paths, and a mounts terminus that uses the file server to figure out what the path should be. It looks like it also makes sense to split the 'mounts' terminus further, so there is a 'modules' terminus used to look files up in the terminus. I've added some integration tests to verify that everything is hooked together correctly. Lastly, I added a directory for shared behaviours. There's a ton of duplication in this setup, because the Content and Metadata classes behave almost but not quite identically across the board.