pkgcore.sync.base module¶
- class pkgcore.sync.base.DisabledSyncer(path, *args, **kwargs)[source]¶
Bases:
Syncer
- disabled = True¶
- class pkgcore.sync.base.ExternalSyncer(*args, **kwargs)[source]¶
Bases:
Syncer
Base class for syncers that spawn a binary to do the the actual work.
- binary = None¶
- env_whitelist = ('SSH_AUTH_SOCK',)¶
- pkgcore.sync.base.GenericSyncer(basedir, uri, **kwargs)[source]¶
Syncer using the plugin system to find a syncer based on uri.
- exception pkgcore.sync.base.SyncError(msg, verbosity=None)[source]¶
Bases:
PkgcoreUserException
Generic syncing error.
- class pkgcore.sync.base.Syncer(path, uri, default_verbosity=0, usersync=False, opts='')[source]¶
Bases:
object
- disabled = False¶
- forcable = False¶
- pkgcore_config_type = <pkgcore.config.hint.ConfigHint object>¶
- split_users(raw_uri)[source]¶
- Parameters:
raw_uri – string uri to split users from; harring::ferringb:pass for example is local user ‘harring’, remote ‘ferringb’, password ‘pass’
- Returns:
(local user, remote user, remote pass), defaults to the current process’s uid if no local user specified
- supported_exts = ()¶
- supported_protocols = ()¶
- supported_uris = ()¶
- class pkgcore.sync.base.VcsSyncer(*args, **kwargs)[source]¶
Bases:
ExternalSyncer