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)