Docstring updates
This commit is contained in:
parent
cffbc3f268
commit
7583cd2a34
@ -33,6 +33,7 @@ class Hierarchy(PathLike):
|
|||||||
|
|
||||||
Methods
|
Methods
|
||||||
-------
|
-------
|
||||||
|
* gen_metadata - generate the metadata for this Hierarchy
|
||||||
* read_metadata - read this Hierarchy's metadata from a file
|
* read_metadata - read this Hierarchy's metadata from a file
|
||||||
and return it
|
and return it
|
||||||
* write_metadata - write this Hierarchy's metadata to a file
|
* write_metadata - write this Hierarchy's metadata to a file
|
||||||
@ -41,9 +42,9 @@ class Hierarchy(PathLike):
|
|||||||
def __init__(self, dest):
|
def __init__(self, dest):
|
||||||
"""Default constructor for the Hierarchy class.
|
"""Default constructor for the Hierarchy class.
|
||||||
|
|
||||||
>>> hier = Hierarchy('backup')
|
>>> hier = Hierarchy('backup_dir')
|
||||||
>>> hier.path
|
>>> hier.path
|
||||||
PosixPath('backup')
|
PosixPath('backup_dir')
|
||||||
|
|
||||||
:param dest: the root directory of the backup hierarchy
|
:param dest: the root directory of the backup hierarchy
|
||||||
:type dest: str or path-like object
|
:type dest: str or path-like object
|
||||||
|
@ -7,7 +7,6 @@ import logging
|
|||||||
|
|
||||||
from rbackup.struct.hierarchy import Hierarchy
|
from rbackup.struct.hierarchy import Hierarchy
|
||||||
|
|
||||||
|
|
||||||
# ========== Logging Setup ===========
|
# ========== Logging Setup ===========
|
||||||
syslog = logging.getLogger(__name__)
|
syslog = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -24,6 +23,7 @@ class Snapshot(Hierarchy):
|
|||||||
|
|
||||||
Methods
|
Methods
|
||||||
-------
|
-------
|
||||||
|
* gen_metadata (inherited from Hierarchy)
|
||||||
* read_metadata (inherited from Hierarchy)
|
* read_metadata (inherited from Hierarchy)
|
||||||
* write_metadata (inherited from Hierarchy)
|
* write_metadata (inherited from Hierarchy)
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user