diff --git a/api/replay/cli.py b/api/replay/cli.py index 48c6f10..4b8cd93 100644 --- a/api/replay/cli.py +++ b/api/replay/cli.py @@ -16,7 +16,7 @@ class Replay: def __init__ (self): self.ep = "https://localhost:8443" - def __request_get__(self, data: str): + def __request_get__ (self, data: str): """ ## HTTP GET @@ -40,7 +40,7 @@ class Replay: else: return res.text - def __request_json_post__(self, path: str, object: dict): + def __request_json_post__ (self, path: str, object: dict): """ ## HTTP JSON POST @@ -64,7 +64,7 @@ class Replay: else: return res.text - def __request_raw_post__(self, path: str, data: str): + def __request_raw_post__ (self, path: str, data: str): """ ## HTTP RAW POST @@ -88,4 +88,111 @@ class Replay: else: return res.text - \ No newline at end of file + def replay_env_queue_id (self): + """ + ## Replay Environment Queue ID + --- + Esta função retorna o valor atribuído à variável de ambiente "REPLAY_QUEUEID", caso exista. + """ + + return os.environ.get ("REPLAY_QUEUEID") + + def replay_env_alias (self): + """ + ## Replay Environment Alias + --- + Esta função retorna o valor atribuído à variável de ambiente "REPLAY_ALIAS", caso exista. + """ + + return os.environ.get ("REPLAY_ALIAS") + + def replay_env_feature_dir (self): + """ + ## Replay Environment Feature Directory + --- + Esta função retorna o valor atribuído à variável de ambiente "REPLAY_FEATUREDIR", caso exista. + """ + + return os.environ.get ("REPLAY_FEATUREDIR") + + def replay_env_root (self): + """ + ## Replay Environment Root + --- + Esta função retorna o valor atribuído à variável de ambiente "REPLAY_ROOT", caso exista. + """ + + return os.environ.get ("REPLAY_ROOT") + + def replay_env_addr (self): + """ + ## Replay Environment Address + --- + Esta função retorna o valor atribuído à variável de ambiente "REPLAY_ADDR", caso exista. + """ + + return os.environ.get ("REPLAY_ADDR") + + def replay_env_home_dir (self): + """ + ## Replay Environment Home Directory + --- + Esta função retorna o valor atribuído à variável de ambiente "REPLAY_HOMEDIR", caso exista. + """ + + return os.environ.get ("REPLAY_HOMEDIR") + + def replay_env_repo (self): + """ + ## Replay Environment Repository + --- + Esta função retorna o valor atribuído à variável de ambiente "REPLAY_REPO", caso exista. + """ + + return os.environ.get ("REPLAY_REPO") + + def replay_env_ver (self): + """ + ## Replay Environment Version + --- + Esta função retorna o valor atribuído à variável de ambiente "REPLAY_VER", caso exista. + """ + + return os.environ.get ("REPLAY_VER") + + def replay_env_repo_dir (self): + """ + ## Replay Environment Repository Directory + --- + Esta função retorna o valor atribuído à variável de ambiente "REPLAY_REPODIR", caso exista. + """ + + return os.environ.get ("REPLAY_REPODIR") + + def replay_env_data_dir (self): + """ + ## Replay Environment Data Directory + --- + Esta função retorna o valor atribuído à variável de ambiente "REPLAY_DATADIR", caso exista. + """ + + return os.environ.get ("REPLAY_DATADIR") + + def replay_env_instance_alias (self): + """ + ## Replay Environment Instance Alias + --- + Esta função retorna o valor atribuído à variável de ambiente "REPLAY_INSTANCE_ALIAS", caso exista. + """ + + return os.environ.get ("REPLAY_INSTANCE_ALIAS") + + def replay_env_api_key (self): + """ + ## Replay Environment API Key + --- + Esta função retorna o valor atribuído à variável de ambiente "REPLAY_APIKEY", caso exista. + """ + + return os.environ.get ("REPLAY_APIKEY") +