LaunchHook has few wrapped attributes

This commit is contained in:
iLLiCiTiT 2020-11-24 17:06:47 +01:00
parent 9a814320ba
commit baa10c6eb5

View file

@ -772,6 +772,26 @@ class LaunchHook:
return True
@property
def data(self):
return self.launch_context.data
@property
def application(self):
return getattr(self.launch_context, "application", None)
@property
def manager(self):
return getattr(self.application, "manager", None)
@property
def host_name(self):
return getattr(self.application, "host_name", None)
@property
def app_name(self):
return getattr(self.application, "app_name", None)
def validate(self):
"""Optional validation of launch hook on initialization.