From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CF0E11387AB for ; Sat, 8 Feb 2014 07:19:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 985A0E0D51; Sat, 8 Feb 2014 07:19:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2BDFDE0D51 for ; Sat, 8 Feb 2014 07:19:36 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0F9D933F970 for ; Sat, 8 Feb 2014 07:19:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id D05B318278 for ; Sat, 8 Feb 2014 07:19:33 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1391843692.05c9320d9f265ff11daac605f80e33341e1233d3.dol-sen@gentoo> Subject: [gentoo-commits] proj/portage:plugin-sync commit in: pym/portage/sync/modules/rsync/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/sync/modules/rsync/__init__.py X-VCS-Directories: pym/portage/sync/modules/rsync/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 05c9320d9f265ff11daac605f80e33341e1233d3 X-VCS-Branch: plugin-sync Date: Sat, 8 Feb 2014 07:19:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0985a13c-db9e-41fd-b0ae-fdd0037ed2ce X-Archives-Hash: d32dfc76db8404a290605bd6a08cb867 commit: 05c9320d9f265ff11daac605f80e33341e1233d3 Author: Brian Dolbec gentoo org> AuthorDate: Sat Feb 8 07:14:52 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sat Feb 8 07:14:52 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=05c9320d Extend the module_spec with the new functions. --- pym/portage/sync/modules/rsync/__init__.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/pym/portage/sync/modules/rsync/__init__.py b/pym/portage/sync/modules/rsync/__init__.py index db74ad4..a0239bf 100644 --- a/pym/portage/sync/modules/rsync/__init__.py +++ b/pym/portage/sync/modules/rsync/__init__.py @@ -14,8 +14,20 @@ module_spec = { 'name': "rsync", 'class': "RsyncSync", 'description': __doc__, - 'functions': ['sync',], - 'func_desc': {'sync': 'Performs rsync transfers on the repository'} + 'functions': ['sync', 'new', 'exists'], + 'func_desc': { + 'sync': 'Performs rsync transfers on the repository', + 'new': 'Creates the new repository at the specified location', + 'exists': 'Returns a boolean if the specified directory exists', + }, + 'func_parameters': { + 'kwargs': { + 'type': dict, + 'description': 'Standard python **kwargs parameter format' + + 'Please refer to the sync modules specs at ' + + '"https://wiki.gentoo.org:Project:Portage" for details', + }, + }, } } }