Ejemplo n.º 1
0
 /** 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);
     }
 }
Ejemplo n.º 2
0
 public function testIsOld()
 {
     $this->assertEquals(false, $this->remote->isOld('test'));
 }