Skip to content

Commit

Permalink
Fixes #3017: Pass 'paths.drush-script' along to backend invoke.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Oct 6, 2017
1 parent 03656fe commit eac65fc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Preflight/RedispatchHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@
use Symfony\Component\Console\Input\InputInterface;
use Consolidation\AnnotatedCommand\AnnotationData;
use Drush\Log\LogLevel;
use Robo\Contract\ConfigAwareInterface;
use Robo\Common\ConfigAwareTrait;

/**
* The RedispatchHook is installed as an init hook that runs before
* all commands. If the commandline contains an alias or a site specification
* that points at a remote machine, then we will stop execution of the
* current command and instead run the command remotely.
*/
class RedispatchHook implements InitializeHookInterface
class RedispatchHook implements InitializeHookInterface, ConfigAwareInterface
{
use ConfigAwareTrait;

/**
* Check to see if it is necessary to redispatch to a remote site.
* We do not redispatch to local sites here; usually, local sites may
Expand Down Expand Up @@ -84,7 +88,7 @@ public function redispatch(InputInterface $input)
$redispatchOptions = $this->redispatchOptions($input);

$backend_options = [
'drush-script' => null,
'drush-script' => $this->getConfig()->get('paths.drush-script', null),
'remote-host' => $remote_host,
'remote-user' => $remote_user,
'additional-global-options' => [],
Expand Down

0 comments on commit eac65fc

Please sign in to comment.