Changeset View
Changeset View
Standalone View
Standalone View
swh/vault/cookers/__init__.py
Show All 16 Lines | |||||
from swh.vault.cookers.git_bare import GitBareCooker | from swh.vault.cookers.git_bare import GitBareCooker | ||||
from swh.vault.cookers.revision_flat import RevisionFlatCooker | from swh.vault.cookers.revision_flat import RevisionFlatCooker | ||||
from swh.vault.cookers.revision_gitfast import RevisionGitfastCooker | from swh.vault.cookers.revision_gitfast import RevisionGitfastCooker | ||||
COOKER_TYPES = { | COOKER_TYPES = { | ||||
"directory": DirectoryCooker, | "directory": DirectoryCooker, | ||||
"revision_flat": RevisionFlatCooker, | "revision_flat": RevisionFlatCooker, | ||||
"revision_gitfast": RevisionGitfastCooker, | "revision_gitfast": RevisionGitfastCooker, | ||||
"snapshot_git_bare": GitBareCooker, | |||||
"revision_git_bare": GitBareCooker, | "revision_git_bare": GitBareCooker, | ||||
"directory_git_bare": GitBareCooker, | "directory_git_bare": GitBareCooker, | ||||
} | } | ||||
def get_cooker_cls(obj_type): | def get_cooker_cls(obj_type): | ||||
return COOKER_TYPES[obj_type] | return COOKER_TYPES[obj_type] | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |