Beispiel #1
0
    def _extract(self, tag: str):
        archive_path = self._get_archive_path(tag)
        destination_folder = self.get_directory(tag)

        if self.archive_type == "tar.gz":
            utils.untar(archive_path, destination_folder)
        elif self.archive_type == "zip":
            utils.unzip(archive_path, destination_folder)
        else:
            raise errors.UnknownArchiveType(self.archive_type)
Beispiel #2
0
 def _extract(self, tag: str):
     archive_path = self._get_archive_path(tag)
     destination_folder = self.get_directory(tag)
     utils.untar(archive_path, destination_folder)
Beispiel #3
0
 def _extract(self):
     archive_path = self._get_archive_path()
     destination_folder = self.get_directory()
     utils.untar(archive_path, destination_folder)