def logs(self, pth, *args, **kwargs): with Path(pth): with logs() as out: shovel.run(*args, **kwargs) return [ line.strip() for line in out.getvalue().strip().split('\n') ]
def stderr(self, pth, *args, **kwargs): with Path(pth): with capture('stderr') as out: shovel.run(*args, **kwargs) return [ line.strip() for line in out.getvalue().strip().split('\n') ]
def logs(self, pth, *args, **kwargs): with path(pth): with logs() as out: shovel.run(*args, **kwargs) return [line.strip() for line in out.getvalue().strip().split('\n')]
def stderr(self, pth, *args, **kwargs): with path(pth): with capture('stderr') as out: shovel.run(*args, **kwargs) return [line.strip() for line in out.getvalue().strip().split('\n')]