protected function determineWorkingDirectoryAndTargetNode(Node $node, Application $application, Deployment $deployment, array $options = [])
    {
        if (!isset($this->workingDirectory, $this->targetNode)) {
            if (isset($options['useApplicationWorkspace']) && $options['useApplicationWorkspace'] === true) {
                $this->workingDirectory = $deployment->getWorkspacePath($application);
                $node = $deployment->getNode('localhost');
            } else {
                $this->workingDirectory = $deployment->getApplicationReleasePath($application);
            }
            $this->targetNode = $node;
        }
    }
protected function determineWorkingDirectoryAndTargetNode(Node $node, Application $application, Deployment $deployment, array $options = [])
    {
        if (!isset($this->workingDirectory, $this->targetNode)) {
            if (isset($options['useApplicationWorkspace']) && $options['useApplicationWorkspace'] === true) {
                $this->workingDirectory = $deployment->getWorkspacePath($application);
                $node = $deployment->getNode('localhost');
            } else {
                $this->workingDirectory = $deployment->getApplicationReleasePath($application);
            }
            $this->targetNode = $node;
        }
    }
protected function determineWorkingDirectoryAndTargetNode ( Node $ node , Application $ application , Deployment $ deployment , array $ options = [ ] ) { if ( ! isset ( $ this -> workingDirectory , $ this -> targetNode ) ) { if ( isset ( $ options [ 'useApplicationWorkspace' ] ) && $ options [ 'useApplicationWorkspace' ] === true ) { $ this -> workingDirectory = $ deployment -> getWorkspacePath ( $ application ) ; $ node = $ deployment -> getNode ( 'localhost' ) ; } else { $ this -> workingDirectory = $ deployment -> getApplicationReleasePath ( $ application ) ; } $ this -> targetNode = $ node ; } }
Determines the path to the working directory and the target node by given options

@param Node $node
@param Application $application
@param Deployment $deployment
@param array $options
Determines the path to the working directory and the target node by given options