1 |
commit: 05c9320d9f265ff11daac605f80e33341e1233d3 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 8 07:14:52 2014 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Feb 8 07:14:52 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=05c9320d |
7 |
|
8 |
Extend the module_spec with the new functions. |
9 |
|
10 |
--- |
11 |
pym/portage/sync/modules/rsync/__init__.py | 16 ++++++++++++++-- |
12 |
1 file changed, 14 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/pym/portage/sync/modules/rsync/__init__.py b/pym/portage/sync/modules/rsync/__init__.py |
15 |
index db74ad4..a0239bf 100644 |
16 |
--- a/pym/portage/sync/modules/rsync/__init__.py |
17 |
+++ b/pym/portage/sync/modules/rsync/__init__.py |
18 |
@@ -14,8 +14,20 @@ module_spec = { |
19 |
'name': "rsync", |
20 |
'class': "RsyncSync", |
21 |
'description': __doc__, |
22 |
- 'functions': ['sync',], |
23 |
- 'func_desc': {'sync': 'Performs rsync transfers on the repository'} |
24 |
+ 'functions': ['sync', 'new', 'exists'], |
25 |
+ 'func_desc': { |
26 |
+ 'sync': 'Performs rsync transfers on the repository', |
27 |
+ 'new': 'Creates the new repository at the specified location', |
28 |
+ 'exists': 'Returns a boolean if the specified directory exists', |
29 |
+ }, |
30 |
+ 'func_parameters': { |
31 |
+ 'kwargs': { |
32 |
+ 'type': dict, |
33 |
+ 'description': 'Standard python **kwargs parameter format' + |
34 |
+ 'Please refer to the sync modules specs at ' + |
35 |
+ '"https://wiki.gentoo.org:Project:Portage" for details', |
36 |
+ }, |
37 |
+ }, |
38 |
} |
39 |
} |
40 |
} |