From ec7da672f0fb0d2f4b14bfb6f4cdf708a6a87240 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Wed, 10 Apr 2019 17:57:43 -0700 Subject: [PATCH] Add gen_metadata() for Hierarchy class --- rbackup/struct/hierarchy.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rbackup/struct/hierarchy.py b/rbackup/struct/hierarchy.py index fcf2b26..88069af 100644 --- a/rbackup/struct/hierarchy.py +++ b/rbackup/struct/hierarchy.py @@ -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.