Add a metadata file to the tower home directory that lists the version

of Tower
This commit is contained in:
Matthew Jones
2014-11-10 12:16:50 -05:00
parent 8916863cd3
commit ce9434314f

View File

@@ -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)