bootstrap-vz/bootstrapvz/remote/build_servers/local.py

17 lines
343 B
Python
Raw Permalink Normal View History

2018-02-12 04:17:53 +00:00
from .build_server import BuildServer
from contextlib import contextmanager
class LocalBuildServer(BuildServer):
@contextmanager
def connect(self):
yield LocalConnection()
class LocalConnection(object):
def run(self, *args, **kwargs):
from bootstrapvz.base.main import run
return run(*args, **kwargs)