blob: 2624e859542f45614fa5edf67dfa5dde70fe3f6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from .base import BasePlatform
class AssemblaPlatform(BasePlatform):
DOMAINS = ("git.assembla.com",)
PATTERNS = {
"ssh": r"(?P<protocols>(git\+)?(?P<protocol>ssh))?(://)?git@(?P<domain>.+?):(?P<pathname>(?P<repo>.+)).git",
"git": r"(?P<protocols>(?P<protocol>git))://(?P<domain>.+?)/(?P<pathname>(?P<repo>.+)).git",
}
FORMATS = {
"ssh": r"git@%(domain)s:%(repo)s.git",
"git": r"git://%(domain)s/%(repo)s.git",
}
DEFAULTS = {"_user": "git"}
|