]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Copied deploy-new.py -> deploy.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 10 Feb 2017 15:15:25 +0000 (16:15 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 10 Feb 2017 15:15:25 +0000 (16:15 +0100)
deploy.py [new file with mode: 0755]
lib/webhooks/__init__.py

diff --git a/deploy.py b/deploy.py
new file mode 100755 (executable)
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
index 26778a3a06e7b7fe775ff7d59ab4573c304725c6..52d46725ff8f2cef473dd93f405067cb8592c835 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/env python3
 # -*- coding: utf-8 -*-
 
-__version__ = '0.3.4'
+__version__ = '0.3.5'
 
 # vim: ts=4 et list