diff options
author | Taseer <taseer94@gmail.com> | 2017-04-25 17:18:27 +0500 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-05-07 18:23:08 +0800 |
commit | ebf4e585a6bbc7a08c5e779ff9863436e44484d8 (patch) | |
tree | 2b3e0853ed0b601472af446b7944dbfba7919035 /qtip/cli/utils.py | |
parent | 3f4432611417378eb56c962b1fbc5270722e77cb (diff) |
Implement qtip workspace create
Change-Id: Ibd4213a6c4c86a7f4e8f99b16cba5055a3abba39
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Diffstat (limited to 'qtip/cli/utils.py')
-rw-r--r-- | qtip/cli/utils.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qtip/cli/utils.py b/qtip/cli/utils.py index a7473236..832e5ba9 100644 --- a/qtip/cli/utils.py +++ b/qtip/cli/utils.py @@ -9,10 +9,19 @@ from jinja2 import Environment from jinja2 import FileSystemLoader +import os from os import path from prettytable import PrettyTable +QTIP_PACKAGE = path.join(path.dirname(__file__), os.pardir, os.pardir) +ROLES_PATH = 'resources/ansible_roles' + + +def join_vars(**kwargs): + return " ".join(["{}={}".format(variable, value) for variable, value in kwargs.items()]) + + def table(name, components): """ Return a PrettyTable for component listing """ table = PrettyTable([name]) |