lib/base/BaseDeploy.class.php
protected function prepareRemoteDirectory($remote_host, $remote_dir)
	{
		$this->log('Initialize remote directory: '. $remote_host .':'. $remote_dir, LOG_INFO, true);

		$output = array();
		$return = null;
		$this->sshExec($remote_host, "mkdir -p $remote_dir", $output, $return, '', '', LOG_DEBUG);

		if (empty($this->data_dirs))
            return;

        $data_dirs = count($this->data_dirs) > 1 ? '{'. implode(',', $this->data_dirs) .'}' : implode(',', $this->data_dirs);

        $cmd = "mkdir -v -m 0775 -p $remote_dir/{$this->data_dir_prefix}/$data_dirs";

        $output = array();
        $return = null;
        $this->sshExec($remote_host, $cmd, $output, $return, '', '', LOG_DEBUG);
	}
protected function prepareRemoteDirectory($remote_host, $remote_dir)
	{
		$this->log('Initialize remote directory: '. $remote_host .':'. $remote_dir, LOG_INFO, true);

		$output = array();
		$return = null;
		$this->sshExec($remote_host, "mkdir -p $remote_dir", $output, $return, '', '', LOG_DEBUG);

		if (empty($this->data_dirs))
            return;

        $data_dirs = count($this->data_dirs) > 1 ? '{'. implode(',', $this->data_dirs) .'}' : implode(',', $this->data_dirs);

        $cmd = "mkdir -v -m 0775 -p $remote_dir/{$this->data_dir_prefix}/$data_dirs";

        $output = array();
        $return = null;
        $this->sshExec($remote_host, $cmd, $output, $return, '', '', LOG_DEBUG);
	}
protected function prepareRemoteDirectory ( $ remote_host , $ remote_dir ) { $ this -> log ( 'Initialize remote directory: ' . $ remote_host . ':' . $ remote_dir , LOG_INFO , true ) ; $ output = array ( ) ; $ return = null ; $ this -> sshExec ( $ remote_host , "mkdir -p $remote_dir" , $ output , $ return , '' , '' , LOG_DEBUG ) ; if ( empty ( $ this -> data_dirs ) ) return ; $ data_dirs = count ( $ this -> data_dirs ) > 1 ? '{' . implode ( ',' , $ this -> data_dirs ) . '}' : implode ( ',' , $ this -> data_dirs ) ; $ cmd = "mkdir -v -m 0775 -p $remote_dir/{$this->data_dir_prefix}/$data_dirs" ; $ output = array ( ) ; $ return = null ; $ this -> sshExec ( $ remote_host , $ cmd , $ output , $ return , '' , '' , LOG_DEBUG ) ; }
Initializes the remote project and data directories.

@param string $remote_host
@param string $remote_dir
Initializes the remote project and data directories .