4242from app .utils .file_manager import get_directory_path , set_permissions
4343from app .utils .host_information import get_public_ip
4444from app .utils .protocols import LoggerProtocol
45- from app .utils .timeout import TimeoutWrapper
45+ from app .utils .timeout import timeout_wrapper
4646
4747from .deps import install_all_deps
4848from .messages import (
@@ -306,7 +306,7 @@ def _run_preflight_checks(self):
306306
307307 def _install_dependencies (self ):
308308 try :
309- with TimeoutWrapper (self .timeout ):
309+ with timeout_wrapper (self .timeout ):
310310 result = install_all_deps (verbose = self .verbose , output = "json" , dry_run = self .dry_run )
311311 except TimeoutError :
312312 raise Exception (dependency_installation_timeout )
@@ -317,7 +317,7 @@ def _setup_clone_and_config(self):
317317 return
318318
319319 try :
320- with TimeoutWrapper (self .timeout ):
320+ with timeout_wrapper (self .timeout ):
321321 success , error = clone_repository (
322322 repo = self ._get_config (DEFAULT_REPO ),
323323 path = self ._get_config ("full_source_path" ),
@@ -417,7 +417,7 @@ def _setup_ssh(self):
417417 )
418418 ssh_operation = SSH (logger = self .logger )
419419 try :
420- with TimeoutWrapper (self .timeout ):
420+ with timeout_wrapper (self .timeout ):
421421 result = ssh_operation .generate (config )
422422 except TimeoutError :
423423 raise Exception (f"{ ssh_setup_failed } : { operation_timed_out } " )
@@ -455,7 +455,7 @@ def _start_services(self):
455455
456456 try :
457457 try :
458- with TimeoutWrapper (self .timeout ):
458+ with timeout_wrapper (self .timeout ):
459459 success , error = start_services (
460460 name = "all" ,
461461 detach = True ,
@@ -490,7 +490,7 @@ def _load_proxy(self):
490490 return
491491
492492 try :
493- with TimeoutWrapper (self .timeout ):
493+ with timeout_wrapper (self .timeout ):
494494 success , error = load_config (caddy_json_config , proxy_port , self .logger )
495495 except TimeoutError :
496496 raise Exception (f"{ proxy_load_failed } : { operation_timed_out } " )
0 commit comments