diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-01-24 21:27:04 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-01-24 21:27:04 +0200 |
commit | 8d6c9959b7afab9b87510f80cc7939ebac8eb7fc (patch) | |
tree | 668043207177d89a1f76aef9020b0ce6a1a4d092 /obnamlib/repo_interface.py | |
parent | 1e3c6628be939fd847a8bca4f5bdab32263054d4 (diff) | |
download | obnam-8d6c9959b7afab9b87510f80cc7939ebac8eb7fc.tar.gz |
Add get_shared_directories interface call
Diffstat (limited to 'obnamlib/repo_interface.py')
-rw-r--r-- | obnamlib/repo_interface.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/obnamlib/repo_interface.py b/obnamlib/repo_interface.py index f8057fef..71642d2e 100644 --- a/obnamlib/repo_interface.py +++ b/obnamlib/repo_interface.py @@ -347,9 +347,19 @@ class RepositoryInterface(object): '''Close the repository and its filesystem.''' raise NotImplementedError() + def get_shared_directories(self): + '''Return list of directories for shared information in the repo. + + This is useful for some plugins that need to store extra data + in each shared directory. + + ''' + raise NotImplementedError() + # Client list. def get_client_names(self): + '''Return client names currently existing in the repository.''' raise NotImplementedError() @@ -830,6 +840,9 @@ class RepositoryInterfaceTests(unittest.TestCase): # pragma: no cover self.repo.close() self.assertTrue(True) + def test_returns_list_of_shared_directories(self): + self.assertTrue(type(self.repo.get_shared_directories()), list) + # Tests for the client list. def test_has_not_got_client_list_lock_initially(self): |