struct PrivPage::UserRepository
- PrivPage::UserRepository
- Struct
- Value
- Object
Overview
Represents an user repository transformed to a safe subdomain.
Defined in:
user_repository.crConstructors
Class Method Summary
-
.branch_prefix
Base branch prefix to serve static pages.
-
.branch_prefix=(branch_prefix : String)
Base branch prefix to serve static pages.
-
.delimiter : String
Delimiter between the user, repository and optionally, the branch.
-
.delimiter=(delimiter : String)
Delimiter between the user, repository and optionally, the branch.
- .from_subdomain(first_subdomain_part : String, response : HTTP::Server::Response) : UserRepository | Nil
- .split_first_subdomain_part(host : String) : Tuple(String, String)
- .subdomains_count : Int32
- .subdomains_count=(subdomains_count : Int32)
Instance Method Summary
- #base_branch : String | Nil
-
#full_branch : String
Full Git branch to be served.
- #repository : String
- #subdomain : String
- #user : String
Constructor Detail
def self.new(subdomain : String, user : String, repository : String, base_branch : String | Nil = nil)
#
Class Method Detail
def self.delimiter=(delimiter : String)
#
Delimiter between the user, repository and optionally, the branch.
def self.from_subdomain(first_subdomain_part : String, response : HTTP::Server::Response) : UserRepository | Nil
#