struct Service::SyncRepos

Overview

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

Defined in:

service/sync_repos.cr

Constant Summary

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

Constructors

Instance Method Summary

Constructor Detail

def self.new(db : ShardsDB, older_than : Time, ratio : Float32) #

[View source]
def self.new(db, age : Time::Span = 24.hours, ratio : Number = 0.1) #

[View source]

Instance Method Detail

def perform #

[View source]
def sync_all_pending_repos(limit : Int32 | Nil = nil) #

[View source]
def sync_repo(repo_ref) #

[View source]
def sync_repos #

[View source]
def update_shard_dependencies #

[View source]