Exemple #1
0
def update(context, configuration, platform, fetch, deps):
    """Update and rebuild the project's dependencies."""
    with timeit('update'):
        with error_handling():
            logger.info("<cmd>Update</cmd>")
            punic = context.obj
            punic.config.update(configuration=configuration, platform=platform)
            punic.config.can_fetch = fetch

            punic.resolve()
            punic.build(dependencies=deps)
Exemple #2
0
def update(context, **kwargs):
    """Update and rebuild the project's dependencies."""
    logging.info("<cmd>Update</cmd>")
    punic = context.obj
    punic.config.update(**kwargs)

    deps = kwargs['deps']

    with timeit('update'):
        with error_handling():
            punic.resolve()
            punic.build(dependencies=deps)
Exemple #3
0
def resolve(context, **kwargs):
    """Resolve dependencies and output `Carthage.resolved` file.

    This sub-command does not build dependencies. Use this sub-command when a dependency has changed and you just want to update `Cartfile.resolved`.
    """
    punic = context.obj
    logging.info("<cmd>Resolve</cmd>")
    punic.config.update(**kwargs)

    with timeit('resolve'):
        with error_handling():
            punic.resolve()
Exemple #4
0
def resolve(context, fetch):
    """Resolve dependencies and output `Carthage.resolved` file.

    This sub-command does not build dependencies. Use this sub-command when a dependency has changed and you just want to update `Cartfile.resolved`.
    """
    with timeit('resolve'):
        with error_handling():
            logger.info("<cmd>Resolve</cmd>")
            punic = context.obj
            punic.config.can_fetch = fetch

            punic.resolve()
Exemple #5
0
def update(context, **kwargs):
    """Update and rebuild the project's dependencies."""
    logging.info("<cmd>Update</cmd>")
    punic = context.obj
    punic.config.update(**kwargs)

    deps = kwargs['deps']

    with timeit('update'):
        with error_handling():
            punic.resolve()
            punic.build(dependencies=deps)
Exemple #6
0
def resolve(context, **kwargs):
    """Resolve dependencies and output `Carthage.resolved` file.

    This sub-command does not build dependencies. Use this sub-command when a dependency has changed and you just want to update `Cartfile.resolved`.
    """
    punic = context.obj
    logging.info("<cmd>Resolve</cmd>")
    punic.config.update(**kwargs)


    with timeit('resolve'):
        with error_handling():
            punic.resolve()