コード例 #1
0
 def test_ssh_get(self, run_cmd):
     ssh_get('user@remote', 'foo/bar*', 'mydestdir')
     run_cmd.assert_called_with(['scp',
                                 '-q',
                                 '-oStrictHostKeyChecking=no',
                                 '-oUserKnownHostsFile=/dev/null',
                                 'user@remote:foo/bar*', '.'], cwd='mydestdir')
コード例 #2
0
 def get(self, shell_pattern, destdir):
     ssh_get(self._ssh_connect_string, 'workspace/{}'.format(shell_pattern),
             destdir)
コード例 #3
0
 def get(self, shell_pattern, destdir):
     ssh_get(self._ssh_connect_string, 'workspace/{}'.format(shell_pattern), destdir)