fabfile/server.py
def launch(kits=_kits):
    """Run a swat demo server."""
    # configure a separate server for every listed kit
    for kit in kits:
        puts('Starting {}'.format(env.kits[kit]['server']))
        with cd(env.server['path'].child(env.kits[kit]['content'], 'System')):
            run('DISPLAY=:0 screen -d -m wine {}'.format(env.kits[kit]['server']))
    if prompt('Stop the servers?', default='y').lower().startswith('y'):
        kill(kits)
Run a swat demo server.
Run a swat demo server.
Run a swat demo server .
def launch(kits=_kits):
    for kit in kits:
        puts('Starting {}'.format(env.kits[kit]['server']))
        with cd(env.server['path'].child(env.kits[kit]['content'], 'System')):
            run('DISPLAY=:0 screen -d -m wine {}'.format(env.kits[kit]['server']))
    if prompt('Stop the servers?', default='y').lower().startswith('y'):
        kill(kits)
def launch ( kits = _kits ) : for kit in kits : puts ( 'Starting {}' . format ( env . kits [ kit ] [ 'server' ] ) ) with cd ( env . server [ 'path' ] . child ( env . kits [ kit ] [ 'content' ] , 'System' ) ) : run ( 'DISPLAY=:0 screen -d -m wine {}' . format ( env . kits [ kit ] [ 'server' ] ) ) if prompt ( 'Stop the servers?' , default = 'y' ) . lower ( ) . startswith ( 'y' ) : kill ( kits )
Run a swat demo server.
Run a swat demo server .
"""Run a swat demo server.""" # configure a separate server for every listed kit
kits