def write_configuration_with_task(self): """Write the storage configuration with a task. FIXME: This is a temporary workaround. :return: an installation task """ return WriteConfigurationTask(self.storage)
def install_with_tasks(self): """Returns installation tasks of this module. FIXME: This is a simplified version of the storage installation. :returns: list of installation tasks """ storage = self.storage return [ ActivateFilesystemsTask(storage), MountFilesystemsTask(storage), WriteConfigurationTask(storage) ]
def install_with_tasks(self): """Returns installation tasks of this module. FIXME: This is a simplified version of the storage installation. :returns: list of object paths of installation tasks """ storage = self.storage tasks = [ ActivateFilesystemsTask(storage), MountFilesystemsTask(storage), WriteConfigurationTask(storage) ] paths = [self.publish_task(STORAGE.namespace, task) for task in tasks] return paths