diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-05-13 11:15:49 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-05-15 15:16:10 +0000 |
commit | 426ad7b517f20ff8c77ed69dcd056db7d5278f18 (patch) | |
tree | 57518b7531da0ebfa6ea6436ea14c91d947abf6c /qtip/runner | |
parent | 284cc6fe24375ad6d32cc567d0c64eedc1a4f4b7 (diff) |
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 <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'qtip/runner')
-rw-r--r-- | qtip/runner/project.py | 22 |
1 files changed, 22 insertions, 0 deletions
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') |