struct

Service::SyncRepo

Inherits Struct < Value < Object

This service synchronizes the information about a repository in the database.

Constants

Log = Shardbox::Log.for("service.sync_repo")

Constructors

new(db : ShardsDB, repo_ref : Repo::Ref)
Source

Class methods

log_sync_failed(repo : Repo, event, exc = nil, metadata = nil)
Source
log_sync_failed(db, repo : Repo, event, exc = nil, metadata = nil)
Source
sync_failed(db, repo : Repo, event, exc = nil, tags = nil)
Source

Instance methods

perform
Source
sync_metadata(repo : Repo, *, fetch_service = Service::FetchMetadata.new(repo.ref))
Source
sync_owner(repo, *, service = CreateOwner.new(@db, repo.ref))
Source
sync_releases(resolver, shard_id)
Source
sync_repo(resolver : Repo::Resolver)
Source
yank_releases_with_missing_versions(shard_id, versions)
Source