struct Service::SyncRepo

Overview

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

Defined in:

service/sync_repo.cr

Constant Summary

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(db : ShardsDB, repo_ref : Repo::Ref) #

[View source]

Class Method Detail

def self.log_sync_failed(repo : Repo, event, exc = nil, metadata = nil) #

[View source]
def self.log_sync_failed(db, repo : Repo, event, exc = nil, metadata = nil) #

[View source]
def self.sync_failed(db, repo : Repo, event, exc = nil, tags = nil) #

[View source]

Instance Method Detail

def perform #

[View source]
def sync_metadata(repo : Repo, *, fetch_service = Service::FetchMetadata.new(repo.ref)) #

[View source]
def sync_owner(repo, *, service = CreateOwner.new(@db, repo.ref)) #

[View source]
def sync_releases(resolver, shard_id) #

[View source]
def sync_repo(resolver : Repo::Resolver) #

[View source]
def yank_releases_with_missing_versions(shard_id, versions) #

[View source]