struct

PrivPage::UserRepository

Inherits Struct / Value / Object

Represents an user repository transformed to a safe subdomain.

Constructors

new(subdomain : String, user : String, repository : String, base_branch : String | Nil = nil)
Source

Class methods

branch_prefix

Base branch prefix to serve static pages.

Source
branch_prefix=(branch_prefix : String)

Base branch prefix to serve static pages.

Source
delimiter

Delimiter between the user, repository and optionally, the branch.

Source
delimiter=(delimiter : String)

Delimiter between the user, repository and optionally, the branch.

Source
from_subdomain(first_subdomain_part : String, response : HTTP::Server::Response) : UserRepository | Nil
Source
split_first_subdomain_part(host : String) : Tuple(String, String)
Source
subdomains_count
Source
subdomains_count=(subdomains_count : Int32)
Source

Instance methods

base_branch
Source
full_branch

Full Git branch to be served.

Source
repository
Source
subdomain
Source
user
Source