Skip to content

Commit f50abe8

Browse files
committed
make is_tunnel_running public
1 parent 701a824 commit f50abe8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="staroid", # Replace with your own username
8-
version="0.0.7",
8+
version="0.0.8",
99
license='MIT',
1010
author="Staroid",
1111
author_email="support@staroid.com",

staroid/namespace.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def get_all_resources(self, instance_name):
225225
logging.error("Can not get namespace resources {}", r.status_code)
226226
return None
227227

228-
def _is_tunnel_running(self, instance_name):
228+
def is_tunnel_running(self, instance_name):
229229
if instance_name in self.__tunnel_processes:
230230
p = self.__tunnel_processes[instance_name]
231231
p.poll()
@@ -234,7 +234,7 @@ def _is_tunnel_running(self, instance_name):
234234
return False
235235

236236
def start_tunnel(self, instance_name, tunnels):
237-
if self._is_tunnel_running(instance_name):
237+
if self.is_tunnel_running(instance_name):
238238
return
239239

240240
chisel_path = self.__staroid.get_chisel_path()
@@ -281,7 +281,7 @@ def __cleanup(self):
281281
p.kill() # supported from python 2.6
282282

283283
def stop_tunnel(self, instance_name):
284-
if self._is_tunnel_running(instance_name):
284+
if self.is_tunnel_running(instance_name):
285285
self.__tunnel_processes[instance_name].kill()
286286
del self.__tunnel_processes[instance_name]
287287

0 commit comments

Comments
 (0)