happy/cli.py
def up(tarball_url, auth_token, env, app_name):
    """Brings up a Heroku app."""
    tarball_url = tarball_url or _infer_tarball_url()

    if not tarball_url:
        click.echo('No tarball URL found.')
        sys.exit(1)

    if env:
        # Split ["KEY=value", ...] into {"KEY": "value", ...}
        env = {
            arg.split('=')[0]: arg.split('=')[1]
            for arg in env
        }

    happy = Happy(auth_token=auth_token)

    click.echo('Creating app... ', nl=False)

    build_id, app_name = happy.create(
        tarball_url=tarball_url,
        env=env,
        app_name=app_name,
    )

    click.echo(app_name)

    click.echo('Building... ', nl=False)

    happy.wait(build_id)

    _write_app_name(app_name)

    click.echo('done')
    click.echo("It's up! :) https://%s.herokuapp.com" % app_name)
def up(tarball_url, auth_token, env, app_name):
    tarball_url = tarball_url or _infer_tarball_url()

    if not tarball_url:
        click.echo('No tarball URL found.')
        sys.exit(1)

    if env:
        # Split ["KEY=value", ...] into {"KEY": "value", ...}
        env = {
            arg.split('=')[0]: arg.split('=')[1]
            for arg in env
        }

    happy = Happy(auth_token=auth_token)

    click.echo('Creating app... ', nl=False)

    build_id, app_name = happy.create(
        tarball_url=tarball_url,
        env=env,
        app_name=app_name,
    )

    click.echo(app_name)

    click.echo('Building... ', nl=False)

    happy.wait(build_id)

    _write_app_name(app_name)

    click.echo('done')
    click.echo("It's up! :) https://%s.herokuapp.com" % app_name)
def up ( tarball_url , auth_token , env , app_name ) : tarball_url = tarball_url or _infer_tarball_url ( ) if not tarball_url : click . echo ( 'No tarball URL found.' ) sys . exit ( 1 ) if env : # Split ["KEY=value", ...] into {"KEY": "value", ...} env = { arg . split ( '=' ) [ 0 ] : arg . split ( '=' ) [ 1 ] for arg in env } happy = Happy ( auth_token = auth_token ) click . echo ( 'Creating app... ' , nl = False ) build_id , app_name = happy . create ( tarball_url = tarball_url , env = env , app_name = app_name , ) click . echo ( app_name ) click . echo ( 'Building... ' , nl = False ) happy . wait ( build_id ) _write_app_name ( app_name ) click . echo ( 'done' ) click . echo ( "It's up! :) https://%s.herokuapp.com" % app_name )
Brings up a Heroku app.
Brings up a Heroku app .