mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Add a metadata file to the tower home directory that lists the version
of Tower
This commit is contained in:
13
awx/main/management/commands/tower_version.py
Normal file
13
awx/main/management/commands/tower_version.py
Normal 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)
|
||||
Reference in New Issue
Block a user