fabfile/server.py
def install(kits=_kits):
    """Install the compiled packages on a test server."""
    with quiet():
        # configure separate servers for every listed kit
        for kit in kits:
            with cd(env.server['path'].child(env.kits[kit]['content'], 'System')):
                # transfer compiled packages
                for package, _ in env.ucc['packages']:
                    put(env.paths['compiled'].child(kit, '{}.u'.format(package)), '.')
                # edit Swat4DedicatedServer.ini
                with edit_ini(env.kits[kit]['ini']) as ini:
                    for section, lines in env.server['settings'].items():
                        # append extra lines to a section
                        if section[0] == '+':
                            ini.append_unique(section[1:], *lines)
                        # set/replace section
                        else:
                            ini.replace(section, *lines)
Install the compiled packages on a test server.
Install the compiled packages on a test server.
Install the compiled packages on a test server .
def install(kits=_kits):
    with quiet():
        for kit in kits:
            with cd(env.server['path'].child(env.kits[kit]['content'], 'System')):
                for package, _ in env.ucc['packages']:
                    put(env.paths['compiled'].child(kit, '{}.u'.format(package)), '.')
                with edit_ini(env.kits[kit]['ini']) as ini:
                    for section, lines in env.server['settings'].items():
                        if section[0] == '+':
                            ini.append_unique(section[1:], *lines)
                        else:
                            ini.replace(section, *lines)
def install ( kits = _kits ) : with quiet ( ) : for kit in kits : with cd ( env . server [ 'path' ] . child ( env . kits [ kit ] [ 'content' ] , 'System' ) ) : for package , _ in env . ucc [ 'packages' ] : put ( env . paths [ 'compiled' ] . child ( kit , '{}.u' . format ( package ) ) , '.' ) with edit_ini ( env . kits [ kit ] [ 'ini' ] ) as ini : for section , lines in env . server [ 'settings' ] . items ( ) : if section [ 0 ] == '+' : ini . append_unique ( section [ 1 : ] , * lines ) else : ini . replace ( section , * lines )
Install the compiled packages on a test server.
Install the compiled packages on a test server .
"""Install the compiled packages on a test server.""" # configure separate servers for every listed kit # transfer compiled packages # edit Swat4DedicatedServer.ini # append extra lines to a section # set/replace section
kits