From 6d16f0ed0c8cb04323fe68bf9f95dfb4ff6f216d Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Sat, 22 Aug 2020 18:40:35 +0000 Subject: [PATCH] Created ngrok_controller --- controllers/ngrok_controller.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 controllers/ngrok_controller.py diff --git a/controllers/ngrok_controller.py b/controllers/ngrok_controller.py new file mode 100644 index 0000000..2e1d79d --- /dev/null +++ b/controllers/ngrok_controller.py @@ -0,0 +1,16 @@ +from pyngrok import ngrok +from pyngrok import exception as pyngrok_exceptions +from pyngrok import installer as pyngrok_installer +from pyngrok import conf as pyngrok_config + + +class NgrokController: + def __init__(self, config_path: str = ".config/ngrok.yml", model=ngrok, exceptions=pyngrok_exceptions, installer=pyngrok_installer, config=pyngrok_config): + self._model = model + self._exceptions = exceptions + self._installer = installer + self._config = config + self._config_path = config_path + self._tunnels = None + self._ngrok_url = None +