ltdconveyor/keeper/build.py
def confirm_build(build_url, keeper_token):
    """Confirm a build upload is complete.

    Wraps ``PATCH /builds/{build}``.

    Parameters
    ----------
    build_url : `str`
        URL of the build resource. Given a build resource, this URL is
        available from the ``self_url`` field.
    keeper_token : `str`
        Auth token (`ltdconveyor.keeper.get_keeper_token`).

    Raises
    ------
    ltdconveyor.keeper.KeeperError
        Raised if there is an error communicating with the LTD Keeper API.
    """
    data = {
        'uploaded': True
    }

    r = requests.patch(
        build_url,
        auth=(keeper_token, ''),
        json=data)
    if r.status_code != 200:
        raise KeeperError(r)
def confirm_build(build_url, keeper_token):
    data = {
        'uploaded': True
    }

    r = requests.patch(
        build_url,
        auth=(keeper_token, ''),
        json=data)
    if r.status_code != 200:
        raise KeeperError(r)
def confirm_build ( build_url , keeper_token ) : data = { 'uploaded' : True } r = requests . patch ( build_url , auth = ( keeper_token , '' ) , json = data ) if r . status_code != 200 : raise KeeperError ( r )
Confirm a build upload is complete.

    Wraps ``PATCH /builds/{build}``.

    Parameters
    ----------
    build_url : `str`
        URL of the build resource. Given a build resource, this URL is
        available from the ``self_url`` field.
    keeper_token : `str`
        Auth token (`ltdconveyor.keeper.get_keeper_token`).

    Raises
    ------
    ltdconveyor.keeper.KeeperError
        Raised if there is an error communicating with the LTD Keeper API.
Confirm a build upload is complete .