From ce9434314fb4851e1573270d9b6a07d88d521ca1 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 10 Nov 2014 12:16:50 -0500 Subject: [PATCH] Add a metadata file to the tower home directory that lists the version of Tower --- awx/main/management/commands/tower_version.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 awx/main/management/commands/tower_version.py diff --git a/awx/main/management/commands/tower_version.py b/awx/main/management/commands/tower_version.py new file mode 100644 index 0000000000..17b9c1673b --- /dev/null +++ b/awx/main/management/commands/tower_version.py @@ -0,0 +1,13 @@ +# Copyright (c) 2014 Ansible, Inc. +# All Rights Reserved + +from django.core.management.base import BaseCommand + +from awx import __version__ as tower_version + +class Command(BaseCommand): + + help = 'Emit the Tower version and exit' + + def handle(self, *args, **options): + self.stdout.write(tower_version)