Components_Release_Task_Website::run PHP Method

run() public method

Run the task.
public run ( &$options )
    public function run(&$options)
    {
        if (!$this->getComponent()->getReleaseNotesPath()) {
            $this->getOutput()->warn('Not an application. Will not add a new version to the website.');
            return;
        }
        $module = $this->getComponent()->getName();
        $version = $this->getComponent()->getVersion();
        if ($this->getTasks()->pretend()) {
            $this->getOutput()->info(sprintf('Would add new version "%s" to module "%s" on the website.', $version, $module));
        } else {
            $website = new Horde_Release_Website($this->_db);
            $website->addNewVersion(array('application' => $module, 'version' => $version));
        }
    }
Components_Release_Task_Website