in marketplace/deployer_util/bash_util.py [0:0]
def __init__(self, cmd, print_call=False, print_result=False):
if print_call:
print(cmd)
parsedCmd = shlex.split(cmd)
self._process = subprocess.Popen(
parsedCmd,
stdin=None,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
encoding='utf-8')
self._exitcode = None
self._output = None
self._print_call = print_call
self._print_result = print_result
self._run()