summaryrefslogtreecommitdiff
path: root/yarnhelper.py
diff options
context:
space:
mode:
Diffstat (limited to 'yarnhelper.py')
-rw-r--r--yarnhelper.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/yarnhelper.py b/yarnhelper.py
index 4cd729a..fa67a3c 100644
--- a/yarnhelper.py
+++ b/yarnhelper.py
@@ -185,33 +185,6 @@ class YarnHelper(object):
else:
return self.ssh_key_file_for_user(user)
- def gitano(self, user, args, stdin=None): # pragma: no cover
- server = os.environ['GITANO_SERVER']
- kwargs = {
- 'stderr': subprocess.STDOUT,
- 'ssh_options': [
- '-oPasswordAuthentication=no',
- '-oIdentitiesOnly=yes',
- '-i', self.get_user_ssh_key(user),
- ],
- }
- if stdin is not None:
- kwargs['feed_stdin'] = stdin
- return cliapp.ssh_runcmd(
- 'git@{}'.format(server),
- args.split(),
- **kwargs)
-
- def gitano_confirm_with_token(self, prefix, which): # pragma: no cover
- try:
- output = self.gitano(None, '{} {}'.format(prefix, which))
- except cliapp.AppException:
- pass
- else:
- last_line = output.splitlines()[-1]
- token = last_line.split()[-1]
- self.gitano(None, '{} {} {}'.format(prefix, which, token))
-
class Error(Exception):