Skip to content

Commit

Permalink
Merge pull request #462 from ec-europa/hotfix/DQA-3575
Browse files Browse the repository at this point in the history
DQA-3575: Copy drush file.
  • Loading branch information
jonhy81 authored Feb 23, 2022
2 parents 178f74e + 02ef35a commit 9427546
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/TaskRunner/Commands/BuildCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,12 @@ public function buildDist(array $options = [
'uri' => reset($vHostArray)
];
$yaml = new Yaml();
$this->taskFilesystemStack()->mkdir($options['dist-root'] . '/web/sites/all/drush')->run();
file_put_contents($options['dist-root'] . '/web/sites/all/drush/drush.yml', $yaml->dump($drush_options));
$yaml_content = $yaml->dump($drush_options);
$yaml_destination = $options['dist-root'] . '/web/sites/all/drush/drush.yml';
$tasks[] = $this->taskFilesystemStack()
->mkdir($options['dist-root'] . '/web/sites/all/drush')
->touch($yaml_destination);
$tasks[] = $this->taskWriteToFile($yaml_destination)->text($yaml_content);
}

// Collect and execute list of commands set on local runner.yml.
Expand Down Expand Up @@ -201,8 +205,12 @@ public function buildDev(array $options = [
'uri' => reset($vHostArray)
];
$yaml = new Yaml();
$this->taskFilesystemStack()->mkdir($root . '/sites/all/drush')->run();
file_put_contents($root . '/sites/all/drush/drush.yml', $yaml->dump($drush_options));
$yaml_content = $yaml->dump($drush_options);
$yaml_destination = $root . '/sites/all/drush/drush.yml';
$tasks[] = $this->taskFilesystemStack()
->mkdir($root . '/sites/all/drush')
->touch($yaml_destination);
$tasks[] = $this->taskWriteToFile($yaml_destination)->text($yaml_content);
}

// Collect and execute list of commands set on local runner.yml.
Expand Down

0 comments on commit 9427546

Please sign in to comment.