diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-09-04 10:49:35 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-09-07 13:34:26 +0100 |
commit | cd00de30a0f4d2d422053692948ea9986960c43f (patch) | |
tree | 9878ddc7d13bb82321aa46adcbc04bdd5150f442 /morph-cache-server | |
parent | b53860b0aa27e5c004adc45552e7fead71de09e7 (diff) | |
download | morph-cache-server-cd00de30a0f4d2d422053692948ea9986960c43f.tar.gz |
A direct-mode for git cache access
Direct-mode, when enabled, causes morph-cache-server to assume a more
Trove-like structure for the repositories, rather than the morph-cache
structure which it was originally written for. This means that for
the workers, we can use the original code and for Trove, the direct mode.
Diffstat (limited to 'morph-cache-server')
-rwxr-xr-x | morph-cache-server | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/morph-cache-server b/morph-cache-server index 3f72c18..bb84915 100755 --- a/morph-cache-server +++ b/morph-cache-server @@ -48,13 +48,16 @@ class MorphCacheServer(cliapp.Application): 'path to the artifact cache directory', metavar='PATH', default=defaults['artifact-dir']) + self.settings.boolean(['direct-mode'], + 'cache directories are directly managed') def process_args(self, args): app = Bottle() repo_cache = RepoCache(self, self.settings['repo-dir'], - self.settings['bundle-dir']) + self.settings['bundle-dir'], + self.settings['direct-mode']) @app.get('/sha1s') def sha1(): |