summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/gitautodeploy.py
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2016-12-11 01:06:26 +0100
committerOliver Poignant <oliver@poignant.se>2016-12-11 01:06:26 +0100
commit30b8b34af911c3b3661f57366f0eeb56bfb5e3ed (patch)
treee64812ba2ede79b2fdfedb5f1069b93f23a8fa25 /gitautodeploy/gitautodeploy.py
parent8ce48c77b775861f496b126f9b60adb3e1e8eedb (diff)
downloadGit-Auto-Deploy-30b8b34af911c3b3661f57366f0eeb56bfb5e3ed.zip
Git-Auto-Deploy-30b8b34af911c3b3661f57366f0eeb56bfb5e3ed.tar.gz
Git-Auto-Deploy-30b8b34af911c3b3661f57366f0eeb56bfb5e3ed.tar.bz2
Webhook request handler factory
Diffstat (limited to 'gitautodeploy/gitautodeploy.py')
-rw-r--r--gitautodeploy/gitautodeploy.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gitautodeploy/gitautodeploy.py b/gitautodeploy/gitautodeploy.py
index 8347d6a..829d76c 100644
--- a/gitautodeploy/gitautodeploy.py
+++ b/gitautodeploy/gitautodeploy.py
@@ -235,7 +235,7 @@ class GitAutoDeploy(object):
import os
import logging
from lock import Lock
- from httpserver import WebhookRequestHandler
+ from httpserver import WebhookRequestHandlerFactory
# This solves https://github.com/olipo186/Git-Auto-Deploy/issues/118
try:
@@ -320,7 +320,9 @@ class GitAutoDeploy(object):
Lock(os.path.join(repo_config['path'], 'status_waiting')).clear()
try:
- WebhookRequestHandler._config = self._config
+ # Create web hook request handler class
+ WebhookRequestHandler = WebhookRequestHandlerFactory(self._config)
+
self._server = HTTPServer((self._config['host'],
self._config['port']),
WebhookRequestHandler)