blob: 7ebb5476c72c46a7e69391a168145860fb012709 [file] [log] [blame]
# Copyright 2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
doc = """Rsync plug-in module for portage.
Performs rsync transfers on repositories."""
__doc__ = doc[:]
from portage.sync.config_checks import CheckSyncConfig
module_spec = {
'name': 'rsync',
'description': doc,
'provides':{
'rsync-module': {
'name': "rsync",
'sourcefile': "rsync",
'class': "RsyncSync",
'description': doc,
'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',
},
'validate_config': CheckSyncConfig,
'module_specific_options': (
'sync-rsync-extra-opts',
'sync-rsync-vcs-ignore',
),
}
}
}