File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 4
4
from .bitbucket import BitbucketPlatform
5
5
from .friendcode import FriendCodePlatform
6
6
from .assembla import AssemblaPlatform
7
- from .gitlab import GitlabPlatform
7
+ from .gitlab import GitLabPlatform
8
8
9
9
10
10
# Supported platforms
20
20
('base' , BasePlatform ()),
21
21
)
22
22
23
- PLATFORMS_MAP = dict (PLATFORMS )
23
+ PLATFORMS_MAP = dict (PLATFORMS )
Original file line number Diff line number Diff line change
1
+ # Imports
2
+ from .base import BasePlatform
3
+
4
+
5
+ class GitLabPlatform (BasePlatform ):
6
+ PATTERNS = {
7
+ 'https' : r'https://(?P<domain>.+)/(?P<owner>.+)/(?P<repo>.+).git' ,
8
+ 'ssh' : r'git@(?P<domain>.+):(?P<owner>.+)/(?P<repo>.+).git' ,
9
+ 'git' : r'git://(?P<domain>.+)/(?P<owner>.+)/(?P<repo>.+).git' ,
10
+ }
11
+ FORMATS = {
12
+ 'https' : r'https://%(domain)s/%(owner)s/%(repo)s.git' ,
13
+ 'ssh' : r'git@%(domain)s:%(owner)s/%(repo)s.git' ,
14
+ 'git' : r'git://%(domain)s/%(owner)s/%(repo)s.git'
15
+ }
16
+ DEFAULTS = {
17
+ '_user' : 'git'
18
+ }
19
+
You can’t perform that action at this time.
0 commit comments