aboutsummaryrefslogtreecommitdiffstats
path: root/klaus/app.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2024-02-12 15:35:42 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2024-02-12 15:35:42 +0000
commit95a34e9de9eef195c0b31e513b688a0c3c85e631 (patch)
tree4576c66cd857c8c870c5aa032174146012b47129 /klaus/app.py
parentcd055d0580b5ef704a05815183a0444370d58aa0 (diff)
downloadgit-scripts-95a34e9de9eef195c0b31e513b688a0c3c85e631.tar.gz
git-scripts-95a34e9de9eef195c0b31e513b688a0c3c85e631.zip
Updated script, switched to cgit
Diffstat (limited to 'klaus/app.py')
-rwxr-xr-xklaus/app.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/klaus/app.py b/klaus/app.py
deleted file mode 100755
index 6b2205e..0000000
--- a/klaus/app.py
+++ /dev/null
@@ -1,24 +0,0 @@
-import configparser
-import waitress
-import klaus
-import os
-
-def get_repo_paths(metadata_path):
- repo_paths = []
- for filename in os.listdir(metadata_path):
- if filename.endswith(".git.conf"):
- meta = configparser.ConfigParser()
- meta.read(os.path.join(metadata_path, filename))
- repo_name = filename[:-5]
-
- if meta.getboolean(repo_name, "visible"):
- repo_paths.append(meta.get(repo_name, "path"))
-
- return repo_paths
-
-if __name__ == "__main__":
- repositories = get_repo_paths("/srv/repos")
- print("Using repository paths: %s" % " ".join(repositories))
- app = klaus.make_app(repositories, "Eden's git server - Repositories")
- waitress.serve(app, host = "0.0.0.0", port = 80, threads = int(os.environ["APP_THREADS"]))
-