summaryrefslogtreecommitdiff
path: root/lib.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-04-24 17:51:30 +0300
committerLars Wirzenius <liw@liw.fi>2017-04-24 17:51:30 +0300
commit3d9ca222d14355fa850cec113a280d9f6565b874 (patch)
tree0556c5302fb31cbb0b5482fdf2ba666b5ea0470a /lib.py
parent111bc3f5559ff6faa41dd862c85b096968a0d3d4 (diff)
downloadgit.liw.fi-ruleset-tests-3d9ca222d14355fa850cec113a280d9f6565b874.tar.gz
Add remaining stuff from yarnhelpr to lib.py
Diffstat (limited to 'lib.py')
-rw-r--r--lib.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib.py b/lib.py
index 611e8a1..42aede6 100644
--- a/lib.py
+++ b/lib.py
@@ -5,9 +5,6 @@ import sys
import cliapp
from yarnutils import *
-import yarnhelper
-
-helper = yarnhelper.YarnHelper()
srcdir = os.environ['SRCDIR']
datadir = os.environ['DATADIR']
@@ -97,3 +94,12 @@ def gitano_confirm_with_token(prefix, which):
last_line = output.splitlines()[-1]
token = last_line.split()[-1]
gitano(None, '{} {} {}'.format(prefix, which, token))
+
+
+
+def repo_ssh_url(repo):
+ return 'ssh://git@{}/{}'.format(os.environ['GITANO_SERVER'], repo)
+
+
+def local_checkout_dirname(user, repo):
+ return '{}_{}'.format(user, repo)