Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Adjust Composer script name: robo → spark
Browse files Browse the repository at this point in the history
The new readme includes adding a Composer script with the name ‘spark’. When Spark was originally written this name was ‘robo’, and that’s how our tasks which we use to execute others referred to it. This breaks things if a Sparkfied project is set up according to the new readme, which makes more sense, so let’s adjust how we invoke the Composer script.
  • Loading branch information
balintbrews committed Jul 27, 2018
1 parent 05ccacc commit 32a1a07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Robo/Tasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ protected function taskSparkExec($command, $args = []) {
foreach ($args as &$arg) {
$arg = sprintf('"%s"', $arg);
}
$this->taskExec(sprintf('composer run -d %s robo %s %s', $this->workDir, $command, implode(' ', $args)))->run();
$this->taskExec(sprintf('composer run -d %s spark %s %s', $this->workDir, $command, implode(' ', $args)))->run();
}

protected function taskSparkContainerExec($container, $command) {
if (is_array($command)) {
$command = implode('; ', $command);
}
$cmd_tpl = 'composer run -d %s robo containers:exec \'%s\' \'/bin/sh -c "%s"\'';
$cmd_tpl = 'composer run -d %s spark containers:exec \'%s\' \'/bin/sh -c "%s"\'';
$this->taskExec(sprintf($cmd_tpl, $this->workDir, $container, $command))->run();
}

Expand Down

0 comments on commit 32a1a07

Please sign in to comment.