def handle(self, *args, **options):
        destination_dir = None
        if len(args) == 1:
            destination_dir = args[0]

        downloader = AddressBaseBasicDownloader()
        downloaded_file = downloader.download(destination_dir)
        return downloaded_file
Beispiel #2
0
 def _download(self, destination_dir, force=False):
     print 'downloading'
     downloader = AddressBaseBasicDownloader()
     return downloader.download(destination_dir, force)
 def _download(self, destination_dir, force=False):
     print 'downloading'
     downloader = AddressBaseBasicDownloader()
     return downloader.download(destination_dir, force)
 def _downloader(self, mock_dl_mgr):
     return AddressBaseBasicDownloader(mock_dl_mgr)