Ejemplo n.º 1
0
def appinit():

    if subssh.to_bool(config.MANAGER_TOOLS):

        manager = GitManager(
            config.REPOSITORIES,
            web_repos_path=config.WEB_DIR,
            urls={"rw": config.URL_RW, "anonymous_read": config.URL_HTTP_CLONE, "webview": config.URL_WEB_VIEW},
        )

        subssh.expose_instance(manager, prefix="git-")
Ejemplo n.º 2
0
def appinit():

    vcs_init(config)

    if subssh.to_bool(config.MANAGER_TOOLS):
        manager = SubversionManager(config.REPOSITORIES,
                                    web_repos_path=config.WEB_DIR,
                                    urls={'rw': config.URL_RW,
                                          'webview': config.URL_WEB_VIEW},
                                     )

        subssh.expose_instance(manager, prefix="svn-")
Ejemplo n.º 3
0
def appinit():

    vcs_init(config)

    if subssh.to_bool(config.MANAGER_TOOLS):
        global hg_manager
        hg_manager = MercurialManager(config.REPOSITORIES,
                         web_repos_path=config.WEB_DIR,
                         urls={'rw': config.URL_RW,
                               'anonymous_read': config.URL_HTTP_CLONE,
                               'webview': config.URL_WEB_VIEW},
                         )

        subssh.expose_instance(hg_manager, prefix="hg-")