diff options
Diffstat (limited to 'helpers/actions/run_command.py')
-rw-r--r-- | helpers/actions/run_command.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/helpers/actions/run_command.py b/helpers/actions/run_command.py deleted file mode 100644 index 1e80c1e..0000000 --- a/helpers/actions/run_command.py +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | import shlex, subprocess | ||
2 | |||
3 | def run(action, command="", wait=False, **kwargs): | ||
4 | action.process = subprocess.Popen(command, shell=True) | ||
5 | if wait: | ||
6 | action.process.wait() | ||
7 | |||
8 | def description(action, command="", wait=False, **kwargs): | ||
9 | message = "running command {}".format(command) | ||
10 | if wait: | ||
11 | message += " (waiting for its execution to finish)" | ||
12 | |||
13 | return message | ||