Package pulp :: Package server :: Package api :: Module repo_sync
[hide private]
[frames] | no frames]

Module repo_sync

source code

Classes [hide private]
  InvalidPathError
  BaseSynchronizer
  YumSynchronizer
  LocalSynchronizer
Sync class to synchronize a directory of rpms from a local filer
  RHNSynchronizer
Functions [hide private]
 
yum_rhn_progress_callback(info) source code
 
sync(repo, repo_source, progress_callback=None)
Synchronizes content for the given RepoSource.
source code
 
update_schedule(repo)
Updates the repo sync scheduler entry with the schedule for the given repo.
source code
 
delete_schedule(repo)
Deletes the repo sync schedule file for the given repo.
source code
 
_cron_command(repo) source code
 
repos_location() source code
 
package_location() source code
Variables [hide private]
  log = logging.getLogger(__name__)
  type_classes = {'yum': YumSynchronizer, 'local': LocalSynchron...
Function Details [hide private]

sync(repo, repo_source, progress_callback=None)

source code 

Synchronizes content for the given RepoSource.

Parameters:
  • repo (pulp.model.Repo) - repo to synchronize; may not be None
  • repo_source (pulp.model.RepoSource) - indicates the source from which the repo data will be syncced; may not be None

update_schedule(repo)

source code 

Updates the repo sync scheduler entry with the schedule for the given repo.

Parameters:
  • repo (pulp.model.Repo) - repo containg the id and sync schedule; may not be None

delete_schedule(repo)

source code 

Deletes the repo sync schedule file for the given repo.

Parameters:
  • repo (pulp.model.Repo) - repo containg the id and sync schedule; may not be None

Variables Details [hide private]

type_classes

Value:
{'yum': YumSynchronizer, 'local': LocalSynchronizer, 'rhn': RHNSynchro\
nizer,}