Пример #1
0
def db_init():
    """Initialise database."""
    try:
        init_db()
        click.echo(click.style('DB Created.', fg='green'))
    except Exception as e:
        click.echo('Something went wrong: {0}'.format(e))
        sys.exit(1)
Пример #2
0
def db_init():
    """Initialise database."""
    try:
        init_db()
        click.echo(click.style("DB Created.", fg="green"))
    except Exception as e:
        click.echo("Something went wrong: {0}".format(e))
        sys.exit(1)
Пример #3
0
def db():
    """Initialize database fixture."""
    from reana_db.database import init_db

    init_db()
    Resource.initialise_default_resources()
Пример #4
0
def db():
    """Initialize database fixture."""
    from reana_db.database import init_db

    init_db()
Пример #5
0
def init():
    """Show REANA database migration recipes history."""
    init_db()
    click.secho("Database initialised.", fg="green")