lib/base/BaseDeploy.class.php
protected function rsyncExec($command, $error_msg = 'Rsync has failed')
	{
		$this->log('execRSync: '. $command, LOG_DEBUG);

		chdir($this->basedir);

		passthru($command, $return);

		$this->log('');

		if ($return !== 0) {
			throw new DeployException($error_msg);
		}
	}
protected function rsyncExec($command, $error_msg = 'Rsync has failed')
	{
		$this->log('execRSync: '. $command, LOG_DEBUG);

		chdir($this->basedir);

		passthru($command, $return);

		$this->log('');

		if ($return !== 0) {
			throw new DeployException($error_msg);
		}
	}
protected function rsyncExec ( $ command , $ error_msg = 'Rsync has failed' ) { $ this -> log ( 'execRSync: ' . $ command , LOG_DEBUG ) ; chdir ( $ this -> basedir ) ; passthru ( $ command , $ return ) ; $ this -> log ( '' ) ; if ( $ return !== 0 ) { throw new DeployException ( $ error_msg ) ; } }
Wrapper for rsync command's

@param string $command
@param string $error_msg
@throws DeployException
Wrapper for rsync command s