|
@@ -285,7 +285,7 @@ class Release extends Command
|
|
|
// creo el archivo de log de como se ejecuto
|
|
|
$this->createFileRunning($input, $output);
|
|
|
// cargo las fuentes a clonar
|
|
|
- $this->createGitClone();
|
|
|
+ $this->createGitClone($input);
|
|
|
// creo el archivo docker-compose.yml
|
|
|
$this->getDockerComposer($docker_tag, "host.env", "docker.infra.flowdat.com/");
|
|
|
// escribo el archivo de host
|
|
@@ -468,7 +468,7 @@ class Release extends Command
|
|
|
/**
|
|
|
* Crea un array con las direcciones de a clonar.
|
|
|
*/
|
|
|
- protected function createGitClone()
|
|
|
+ protected function createGitClone(InputInterface $input)
|
|
|
{
|
|
|
$clone = array();
|
|
|
$modules = array_keys($this->_modules);
|
|
@@ -481,6 +481,11 @@ class Release extends Command
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
+ $name = 'extra';
|
|
|
+ $clone[$name] = array(
|
|
|
+ 'url' => $input->getOption($name . "-repo"),
|
|
|
+ 'branch' => $input->getOption($name . "-ref")
|
|
|
+ );
|
|
|
$this->_dObj->file("git.ini")->writeIniConfig($clone);
|
|
|
}
|
|
|
|