Add gen_metadata() for Hierarchy class

This commit is contained in:
Eric Torres 2019-04-10 17:57:43 -07:00
parent 7583cd2a34
commit ec7da672f0

View File

@ -97,6 +97,12 @@ class Hierarchy(PathLike):
"""
return self._path / ".metadata"
def gen_metadata(self):
"""Generate metadata for this repository. After this method is called,
the data necessary for this repository has been created.
"""
raise NotImplementedError("This method must be called in a child class.")
def read_metadata(self):
"""Read this repository's metadata from its file and
then return it.