Commit 270dc13d authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Adding a `heptapod` attribute on Heptapod

For objects that are relative to different type of GitLab objects,
such as Runners, it would be convenient to access the Heptapod
instance uniformly.
parent 22ce6160fc56
Pipeline #5457 failed with stages
in 11 minutes and 25 seconds
......@@ -74,6 +74,10 @@ class Heptapod:
self.wait_after_first_response = wait_after_first_response
self.settings = {}
@property
def heptapod(self):
return self
@property
def ssh_url(self):
return 'ssh://{user}@{host}:{port}'.format(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment