示例#1
0
    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)
示例#2
0
    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)
        ]
示例#3
0
    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