Пример #1
0
def GetOverrideStager(command, staging_area):
    """Get a stager with a registry that always calls the given command."""
    return Stager(
        runtime_registry.Registry(None,
                                  override=command,
                                  default=NoopCommand()), staging_area)
Пример #2
0
def GetNoopStager(staging_area):
    """Get a stager with an empty registry."""
    return Stager(runtime_registry.Registry({}, default=NoopCommand()),
                  staging_area)
Пример #3
0
def GetRegistry():
    return runtime_registry.Registry(_STAGING_REGISTRY, default=NoopCommand())
Пример #4
0
def GetBetaRegistry():
    mappings = _STAGING_REGISTRY.copy()
    mappings.update(_STAGING_REGISTRY_BETA)
    return runtime_registry.Registry(mappings, default=NoopCommand())
Пример #5
0
def _GetGcloudignoreRegistry():
    return runtime_registry.Registry(_GCLOUDIGNORE_REGISTRY)