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

Commit

Permalink
Merge pull request #25 from BluesparkLabs/composer-script-rename
Browse files Browse the repository at this point in the history
Adjust Composer script name: robo → spark
  • Loading branch information
jameswilson authored Jul 27, 2018
2 parents 05ccacc + 32a1a07 commit fd7e506
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 fd7e506

Please sign in to comment.