From: Frank Brehm Date: Fri, 10 Feb 2017 15:15:25 +0000 (+0100) Subject: Copied deploy-new.py -> deploy.py X-Git-Tag: 0.8.4~40 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=dcfe9124e1fe0293c07fd55fa10d2ab8087930d3;p=pixelpark%2Fpuppetmaster-webhooks.git Copied deploy-new.py -> 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