(host, app_id=None)
Quits specified application if it is running.
        If no app_id specified will quit current running app.
Quits specified application if it is running.
        If no app_id specified will quit current running app.
Quits specified application if it is running . If no app_id specified will quit current running app .
def quit_app(host, app_id=None):
    """ Quits specified application if it is running.
        If no app_id specified will quit current running app. """

    if not app_id:
        status = get_app_status(host)

        if status:
            app_id = status.app_id

    if app_id:
        CC_SESSION.delete(_craft_app_url(host, app_id))
def quit_app ( host , app_id = None ) : if not app_id : status = get_app_status ( host ) if status : app_id = status . app_id if app_id : CC_SESSION . delete ( _craft_app_url ( host , app_id ) )