Example #1
0
 def __init__(self):
     super(TorrentSyncTransport, self).__init__()
     # we need some non torrent based sync transfer to upload client
     self._sync_helper = SSHSyncTransport()
     self._torrents = []
     self._sudo_torrents = []
     self._torrent_path = '/vagrant/torrents'
Example #2
0
 def __init__(self, resources, handlers=None):
     self.resources = resources
     if handlers is None:
         self.transport_sync = SSHSyncTransport()
         self.transport_run = SSHRunTransport()
     else:
         self.transport_run = handlers['run']()
         self.transport_sync = handlers['sync']()
     self.transport_sync.bind_with(self.transport_run)
     self.transport_run.bind_with(self.transport_sync)