MCPcopy Create free account
hub / github.com/ceph/ceph / main

Function main

src/script/cpatch.py:714–734  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

712
713@clean_errors
714def main():
715 cli_ctx = CLIContext.parse()
716 cli_ctx.setup_logging()
717 if not cli_ctx.components_selected:
718 log.warning(
719 "consider --py, --core, and/or --rgw for an abbreviated (faster) build."
720 )
721 time.sleep(2)
722
723 if cli_ctx.needs_build_dir:
724 check_build_dir(cli_ctx)
725
726 if cli_ctx.pull:
727 pull_base_image(cli_ctx)
728 with Builder(cli_ctx) as builder:
729 for component in cli_ctx.build_components():
730 builder.add(component)
731 builder.build()
732
733 if cli_ctx.push:
734 push_image(cli_ctx)
735
736
737if __name__ == "__main__":

Callers 1

cpatch.pyFile · 0.70

Calls 11

check_build_dirFunction · 0.85
pull_base_imageFunction · 0.85
push_imageFunction · 0.85
setup_loggingMethod · 0.80
build_componentsMethod · 0.80
BuilderClass · 0.70
parseMethod · 0.45
warningMethod · 0.45
sleepMethod · 0.45
addMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected