public function onInstallReleaseUpdateFilePermissions(InstallReleaseEvent $event, $eventName, EventDispatcherInterface $eventDispatcher)
    {
        $host = $event->getRelease()->getWorkspace()->getHost();
        $connection = $this->ensureConnection($host);

        $eventDispatcher->dispatch(AccompliEvents::LOG, new LogEvent(LogLevel::NOTICE, 'Updating permissions for the configured paths...', $eventName, $this, array('event.task.action' => TaskInterface::ACTION_IN_PROGRESS)));

        $releasePath = $event->getRelease()->getPath();

        $result = true;
        foreach ($this->paths as $path => $pathSettings) {
            $result = $result && $this->updateFilePermissions($connection, $releasePath, $path, $pathSettings);
        }

        if ($result === true) {
            $eventDispatcher->dispatch(AccompliEvents::LOG, new LogEvent(LogLevel::NOTICE, 'Updated permissions for the configured paths.', $eventName, $this, array('event.task.action' => TaskInterface::ACTION_COMPLETED, 'output.resetLine' => true)));
        } else {
            throw new TaskRuntimeException('Failed updating the permissions for the configured paths.', $this);
        }
    }