Mercurial > hg > cmmr2012-drupal-site
annotate 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 |
rev | line source |
---|---|
Chris@5 | 1 <?php |
Chris@5 | 2 |
Chris@5 | 3 namespace Consolidation\SiteProcess\Transport; |
Chris@5 | 4 |
Chris@5 | 5 use Consolidation\SiteProcess\SiteProcess; |
Chris@5 | 6 |
Chris@5 | 7 /** |
Chris@5 | 8 * LocalTransport just runs the command on the local system. |
Chris@5 | 9 */ |
Chris@5 | 10 class LocalTransport implements TransportInterface |
Chris@5 | 11 { |
Chris@5 | 12 /** |
Chris@5 | 13 * @inheritdoc |
Chris@5 | 14 */ |
Chris@5 | 15 public function configure(SiteProcess $process) |
Chris@5 | 16 { |
Chris@5 | 17 $process->setWorkingDirectoryLocal($process->getWorkingDirectory()); |
Chris@5 | 18 } |
Chris@5 | 19 |
Chris@5 | 20 /** |
Chris@5 | 21 * @inheritdoc |
Chris@5 | 22 */ |
Chris@5 | 23 public function wrap($args) |
Chris@5 | 24 { |
Chris@5 | 25 return $args; |
Chris@5 | 26 } |
Chris@5 | 27 |
Chris@5 | 28 /** |
Chris@5 | 29 * @inheritdoc |
Chris@5 | 30 */ |
Chris@5 | 31 public function addChdir($cd, $args) |
Chris@5 | 32 { |
Chris@5 | 33 return $args; |
Chris@5 | 34 } |
Chris@5 | 35 } |