protected function getRemoteVersion(Context $context) { if ($context->isFullDeploy()) { return; } $versionFile = FilePath::join($this->transporter->getPath(), $context->getStrategy()->getCurrentReleasePath(), $this->remoteInfoFile); $content = $this->transporter->get($versionFile); list($name, $build) = explode(':', trim($content)); $context->setRemoteVersion(new Version($name, $build)); }