aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaseer <taseer94@gmail.com>2017-05-10 13:52:43 +0500
committerTaseer <taseer94@gmail.com>2017-05-10 21:24:17 +0500
commit9f89643b5c5ee41d35813fad09d46edf409cd027 (patch)
treead5b18f70477d4eb15ea8df4b536fc19329a6bee
parentdae8de048d633997b5c96a773d29f52d65af462f (diff)
Implement setup/run command
Change-Id: I2dbbedac08856672a093dc3c277243a3f60776d3 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
-rw-r--r--qtip/cli/commands/cmd_run.py3
-rw-r--r--qtip/cli/commands/cmd_setup.py3
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()))