예제 #1
0
파일: __init__.py 프로젝트: loles/solar-1
def main():
    # NOTE(mkwiek): no arguments should be supplied to solar-worker
    argparse.ArgumentParser().parse_args()
    log.info('Database in use: {}'.format(C.solar_db))
    runner = loader.get_runner(C.runner)
    constructors = loader.get_constructors()
    clients = loader.get_clients()
    exts = loader.get_extensions(clients)
    runner.driver(constructors, exts, clients)
예제 #2
0
파일: __init__.py 프로젝트: loles/solar-1
def main():
    # NOTE(mkwiek): no arguments should be supplied to solar-worker
    argparse.ArgumentParser().parse_args()
    log.info('Database in use: {}'.format(C.solar_db))
    runner = loader.get_runner(C.runner)
    constructors = loader.get_constructors()
    clients = loader.get_clients()
    exts = loader.get_extensions(clients)
    runner.driver(constructors, exts, clients)
예제 #3
0
def constructors():
    return loader.get_constructors()