mvillalba/mastersync — Issue #3: High-level container operations
Author: mvillalba
Created: 2011-11-13 14:04:29+00:00
State: open

"GIT" and "FILE" containers really simple APIs to operate on.
They should not extend Container but rather abstract it. There should also be a ContainerParser or similar class that will use Container to extract the container's type, and then create a specific handler for it (say, GitContainer), which would be a fairly simple class, usable like this:
gc = GitContainer('/home/ehyde/prj', in_place=True)
gc.save('/path/to/containers')
gc.load('/path/to/containers')
gc.restore()