struct PrivPage::UserRepository

Overview

Represents an user repository transformed to a safe subdomain.

Defined in:

user_repository.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(subdomain : String, user : String, repository : String, base_branch : String | Nil = nil) #

[View source]

Class Method Detail

def self.branch_prefix #

Base branch prefix to serve static pages.


[View source]
def self.branch_prefix=(branch_prefix : String) #

Base branch prefix to serve static pages.


[View source]
def self.delimiter : String #

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


[View source]
def self.delimiter=(delimiter : String) #

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


[View source]
def self.from_subdomain(first_subdomain_part : String, response : HTTP::Server::Response) : UserRepository | Nil #

[View source]
def self.split_first_subdomain_part(host : String) : Tuple(String, String) #

[View source]
def self.subdomains_count : Int32 #

[View source]
def self.subdomains_count=(subdomains_count : Int32) #

[View source]

Instance Method Detail

def base_branch : String | Nil #

[View source]
def full_branch : String #

Full Git branch to be served.


[View source]
def repository : String #

[View source]
def subdomain : String #

[View source]
def user : String #

[View source]