From dcfe9124e1fe0293c07fd55fa10d2ab8087930d3 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 10 Feb 2017 16:15:25 +0100 Subject: [PATCH] Copied deploy-new.py -> deploy.py --- deploy.py | 32 ++++++++++++++++++++++++++++++++ lib/webhooks/__init__.py | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100755 deploy.py diff --git a/deploy.py b/deploy.py new file mode 100755 index 0000000..32317a3 --- /dev/null +++ b/deploy.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +# Standard modules +import os +import sys +import logging + +# own modules: +basedir = os.path.abspath(os.path.dirname(__file__)) +libdir = os.path.join(basedir, 'lib') + +sys.path.insert(0, libdir) + + +import webhooks + +from webhooks.deploy import WebhookDeployApp + +MY_APPNAME = 'deploy' +LOG = logging.getLogger(MY_APPNAME) + +app = WebhookDeployApp(appname=MY_APPNAME) + +if app.verbose > 2: + LOG.debug("{c} object:\n{o}".format(c=app.__class__.__name__, o=app)) + +app() + +sys.exit(0) + +# vim: ts=4 et diff --git a/lib/webhooks/__init__.py b/lib/webhooks/__init__.py index 26778a3..52d4672 100644 --- a/lib/webhooks/__init__.py +++ b/lib/webhooks/__init__.py @@ -1,6 +1,6 @@ #!/bin/env python3 # -*- coding: utf-8 -*- -__version__ = '0.3.4' +__version__ = '0.3.5' # vim: ts=4 et list -- 2.39.5