diff options
Diffstat (limited to 'lib.py')
-rw-r--r-- | lib.py | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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) |