public function testCD() { $this->remote->cd('test'); $this->remote->cd('test'); $this->remote->cd('test2'); $this->remote->cd('test2'); }
/** Controller to perform deploy routine */ public function __BASE() { $this->title('Deploying project to ' . $this->host); // If no remote class name is set if (!isset($this->remote)) { // Create remote connection instance $this->remote = new Remote($this->host, $this->username, $this->password); } // Go to project remote folder if (empty($this->wwwroot) || $this->remote->cd($this->wwwroot)) { $this->deploy(); $this->remote->log('Project[##] has been successfully deployed to [##]', $this->sourceroot, $this->host); } }