From 426ad7b517f20ff8c77ed69dcd056db7d5278f18 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Sat, 13 May 2017 11:15:49 +0800 Subject: Refactoring workspace related commands to `project` group - renamed `workspace` to `project`, which is more accurate - group create/setup/run/teardown into `project` - shortcut for project commands, e.g. `qtip create` <=> `qtip project create` - even shorter command alias, e.g. `qtip s` => `qtip setup` Change-Id: I69ba5aa571bccc1cc4687481189c329b099bee91 Signed-off-by: Yujun Zhang --- qtip/runner/project.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 qtip/runner/project.py (limited to 'qtip/runner') diff --git a/qtip/runner/project.py b/qtip/runner/project.py new file mode 100644 index 00000000..9eadc9db --- /dev/null +++ b/qtip/runner/project.py @@ -0,0 +1,22 @@ +############################################################################## +# Copyright (c) 2017 ZTE corp. and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +import os + + +def setup(): + os.system('ansible-playbook setup.yml') + + +def run(): + os.system('ansible-playbook run.yml') + + +def teardown(): + os.system('ansible-playbook teardown.yml') -- cgit 1.2.3-korg