diff options
-rw-r--r-- | yarnhelper.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/yarnhelper.py b/yarnhelper.py index 6272102..67b0a88 100644 --- a/yarnhelper.py +++ b/yarnhelper.py @@ -144,6 +144,16 @@ class YarnHelper(object): args.split(), stderr=subprocess.STDOUT) + def gitano_confirm_with_token(self, prefix, which): # pragma: no cover + try: + output = self.gitano('{} {}'.format(prefix, which)) + except cliapp.AppException: + pass + else: + last_line = output.splitlines()[-1] + token = last_line.split()[-1] + self.gitano('{} {}'.format(prefix, token)) + class Error(Exception): |