public function updatePlugin($name)
    {
        /*
         * Update the plugin database and version
         */
        if (!($plugin = $this->pluginManager->findByIdentifier($name))) {
            $this->note('<error>Unable to find:</error> ' . $name);
            return;
        }

        $this->note($name);

        $this->versionManager->resetNotes()->setNotesOutput($this->notesOutput);

        if ($this->versionManager->updatePlugin($plugin) !== false) {

            foreach ($this->versionManager->getNotes() as $note) {
                $this->note($note);
            }
        }

        return $this;
    }
public function updatePlugin($name)
    {
        /*
         * Update the plugin database and version
         */
        if (!($plugin = $this->pluginManager->findByIdentifier($name))) {
            $this->note('<error>Unable to find:</error> ' . $name);
            return;
        }

        $this->note($name);

        $this->versionManager->resetNotes()->setNotesOutput($this->notesOutput);

        if ($this->versionManager->updatePlugin($plugin) !== false) {

            foreach ($this->versionManager->getNotes() as $note) {
                $this->note($note);
            }
        }

        return $this;
    }
public function updatePlugin ( $ name ) { /*
         * Update the plugin database and version
         */ if ( ! ( $ plugin = $ this -> pluginManager -> findByIdentifier ( $ name ) ) ) { $ this -> note ( '<error>Unable to find:</error> ' . $ name ) ; return ; } $ this -> note ( $ name ) ; $ this -> versionManager -> resetNotes ( ) -> setNotesOutput ( $ this -> notesOutput ) ; if ( $ this -> versionManager -> updatePlugin ( $ plugin ) !== false ) { foreach ( $ this -> versionManager -> getNotes ( ) as $ note ) { $ this -> note ( $ note ) ; } } return $ this ; }
Runs update on a single plugin
@param string $name Plugin name.
@return self
Runs update on a single plugin