return await app_facade.Destroy(self.name)
remove = destroy
- def expose(self):
+ async def expose(self):
"""Make this service publicly available over the network.
"""
- pass
+ app_facade = client.ApplicationFacade()
+ app_facade.connect(self.connection)
+
+ log.debug(
+ 'Exposing %s', self.name)
+
+ return await app_facade.Expose(self.name)
def get_config(self):
"""Return the configuration settings for this service.
be exposed.
"""
application = self.resolve(application)
- log.debug('Exposing %s', application)
- await self.app_facade.Expose(application)
- return None
+ return await self.model.applications[application].expose()
async def setAnnotations(self, id_, entity_type, annotations):
"""