MCPcopy Index your code
hub / github.com/zappa/Zappa / remove_local_zip

Method remove_local_zip

zappa/cli.py:3169–3181  ·  view source on GitHub ↗

Remove our local zip file.

(self)

Source from the content-addressed store, hash-verified

3167 return settings_s
3168
3169 def remove_local_zip(self):
3170 """
3171 Remove our local zip file.
3172 """
3173
3174 if self.stage_config.get("delete_local_zip", True):
3175 try:
3176 if os.path.isfile(self.zip_path):
3177 os.remove(self.zip_path)
3178 if self.handler_path and os.path.isfile(self.handler_path):
3179 os.remove(self.handler_path)
3180 except Exception: # pragma: no cover
3181 sys.exit(-1)
3182
3183 def remove_uploaded_zip(self):
3184 """

Callers 7

deployMethod · 0.95
updateMethod · 0.95
on_exitMethod · 0.95
test_cli_utilityMethod · 0.95
test_slim_handlerMethod · 0.95

Calls 1

removeMethod · 0.45

Tested by 4

test_cli_utilityMethod · 0.76
test_slim_handlerMethod · 0.76