class

Repo

Inherits Reference < Object

Constants

RESOLVERS = {"git", "github", "gitlab", "bitbucket"}

Constructors

new(ref : Ref, shard_id : Int64 | Nil, role : Role = :canonical, metadata : Repo::Metadata = Metadata.new, synced_at : Time | Nil = nil, sync_failed_at : Time | Nil = nil, id : Int64 | Nil = nil)
Source
new(resolver : String, url : String, shard_id : Int64 | Nil, role : String = "canonical", metadata = Metadata.new, synced_at : Time | Nil = nil, sync_failed_at : Time | Nil = nil, id : Int64 | Nil = nil)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

hash(hasher)

See Object#hash(hasher)

id=(id : Int64 | Nil)
Source
metadata
Source
ref

Returns the identifier of this repo, consisting of resolver and url.

Source
role

Returns the role of this repo for the shard (defaults to canonical).

Source
role=(role : Role)

Returns the role of this repo for the shard (defaults to canonical).

Source
shard_id

Returns a reference to the shard hosted in this repo.

Source
sync_failed_at
Source
synced_at
Source

Nested types