def update(ctx, **kwargs): """Updates the parts listing from the cloud.""" # Update in the container so that it will use the parts at build time build_environment = env.BuilderEnvironmentConfig() if not build_environment.is_host: project_options = get_project_options(**kwargs) lifecycle.containerbuild('update', project_options) # Parts can be defined and searched from any folder on the host, so # regardless of using containers we always update these as well remote_parts.update()
def update(ctx, **kwargs): """Updates the parts listing from the cloud.""" # Update in the container so that it will use the parts at build time build_environment = env.BuilderEnvironmentConfig() if not build_environment.is_host: project = get_project(**kwargs) project_config = project_loader.load_config(project) lifecycle.containerbuild("update", project_config) # Parts can be defined and searched from any folder on the host, so # regardless of using containers we always update these as well remote_parts.update()
def setUp(self): super().setUp() self.useFixture(fixture_setup.FakeParts()) remote_parts.update()
def update(ctx): """Updates the parts listing from the cloud.""" remote_parts.update()