From 9f89643b5c5ee41d35813fad09d46edf409cd027 Mon Sep 17 00:00:00 2001 From: Taseer Date: Wed, 10 May 2017 13:52:43 +0500 Subject: Implement setup/run command Change-Id: I2dbbedac08856672a093dc3c277243a3f60776d3 Signed-off-by: Taseer Ahmed --- qtip/cli/commands/cmd_run.py | 3 ++- qtip/cli/commands/cmd_setup.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qtip/cli/commands/cmd_run.py b/qtip/cli/commands/cmd_run.py index d1b96d4f..56d416ab 100644 --- a/qtip/cli/commands/cmd_run.py +++ b/qtip/cli/commands/cmd_run.py @@ -9,8 +9,9 @@ import click +import os @click.command('run', help='Run performance tests') def cli(): - pass + os.system('ansible-playbook {}/run.yml'.format(os.getcwd())) diff --git a/qtip/cli/commands/cmd_setup.py b/qtip/cli/commands/cmd_setup.py index 586a4a72..ac434561 100644 --- a/qtip/cli/commands/cmd_setup.py +++ b/qtip/cli/commands/cmd_setup.py @@ -9,8 +9,9 @@ import click +import os @click.command('setup', help='Setup QTIP workspace') def cli(): - pass + os.system('ansible-playbook {}/setup.yml'.format(os.getcwd())) -- cgit 1.2.3-korg