Exemplo n.º 1
0
 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')
         ]
Exemplo n.º 2
0
 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')
         ]
Exemplo n.º 3
0
 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')]
Exemplo n.º 4
0
 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')]