def _zip_and_upload_code(self):
self._logger.debug('Zipping project code in preparation to send')
archive_dir = os.path.abspath(os.path.join(self._project_path, '..'))
place = os.path.join(self._project_path, 'full_code')
shutil.make_archive(base_name=place,
format='zip',
root_dir=archive_dir,
base_dir='NASA_Project')
self._logger.debug('Zipping done')
self._s3_client.upload_file(self._project_bucket,
os.path.join(self._project_path, 'full_code.zip'),
'full_code.zip')
评论列表
文章目录