Mercurial > hg > cmmr2012-drupal-site
diff vendor/consolidation/site-process/src/Transport/LocalTransport.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/consolidation/site-process/src/Transport/LocalTransport.php Thu May 09 15:34:47 2019 +0100 @@ -0,0 +1,35 @@ +<?php + +namespace Consolidation\SiteProcess\Transport; + +use Consolidation\SiteProcess\SiteProcess; + +/** + * LocalTransport just runs the command on the local system. + */ +class LocalTransport implements TransportInterface +{ + /** + * @inheritdoc + */ + public function configure(SiteProcess $process) + { + $process->setWorkingDirectoryLocal($process->getWorkingDirectory()); + } + + /** + * @inheritdoc + */ + public function wrap($args) + { + return $args; + } + + /** + * @inheritdoc + */ + public function addChdir($cd, $args) + { + return $args; + } +}