Beispiel #1
0
def sync(ctx):
    """Syncs Spectrometer data

    Force syncs the git repositories to pull down the latest data.
    """
    app = create_app(ctx.obj['conf'])
    gerrit_url = app.config['GERRIT_URL']
    mirror_dir = app.config['MIRROR_DIR']
    mirror_repos(mirror_dir, gerrit_url)
Beispiel #2
0
def sync(ctx):
    """Syncs Spectrometer data

    Force syncs the git repositories to pull down the latest data.
    """
    app = create_app(ctx.obj['conf'])
    gerrit_url = app.config['GERRIT_URL']
    mirror_dir = app.config['MIRROR_DIR']
    mirror_repos(mirror_dir, gerrit_url)
Beispiel #3
0
def start(ctx):
    """Runs the spectrometer server

    This function is effectively the spectrometer main() function and is the
    entry point for spectrometer server.
    """
    app = create_app(ctx.obj['conf'])

    click.echo('Syncing Spectrometer data...')
    gerrit_url = app.config['GERRIT_URL']
    mirror_dir = app.config['MIRROR_DIR']
    mirror_repos(mirror_dir, gerrit_url)

    click.echo('Starting spectrometer...')
    app.run(
        threaded=True,
        host=app.config['LISTEN_HOST'],
        port=app.config['LISTEN_PORT'],
    )
Beispiel #4
0
def start(ctx):
    """Runs the spectrometer server

    This function is effectively the spectrometer main() function and is the
    entry point for spectrometer server.
    """
    app = create_app(ctx.obj['conf'])

    click.echo('Syncing Spectrometer data...')
    gerrit_url = app.config['GERRIT_URL']
    mirror_dir = app.config['MIRROR_DIR']
    mirror_repos(mirror_dir, gerrit_url)

    click.echo('Starting spectrometer...')
    app.run(
        threaded=True,
        host=app.config['LISTEN_HOST'],
        port=app.config['LISTEN_PORT'],
    )