(self)
| 78 | return file.read().strip() |
| 79 | |
| 80 | def get_local_destination(self): |
| 81 | parts = self.plugin_parts |
| 82 | if parts is None: |
| 83 | raise Exception('Not a valid github plugin') |
| 84 | |
| 85 | file_name = '{}_{}_{}.zip'.format(parts['user'], parts['repo'], parts['sha']) |
| 86 | full_path = os.path.join(self.PLUGINS_FOLDER, file_name) |
| 87 | return full_path |
| 88 | |
| 89 | def is_already_installed(self): |
| 90 | file_path = self.get_plugin_folder() |
no outgoing calls