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)
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)
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()
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()
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)
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()