|
@@ -260,7 +260,7 @@ class Release extends Command
|
|
->addOption('docker-tag', null, InputOption::VALUE_REQUIRED, 'Docker tag to be used. Ej. v0.1.1', "latest")
|
|
->addOption('docker-tag', null, InputOption::VALUE_REQUIRED, 'Docker tag to be used. Ej. v0.1.1', "latest")
|
|
->addOption('all-ref', null, InputOption::VALUE_REQUIRED, 'Git reference (branch or tag) to clone all app. Ej. 0.1.1', "")
|
|
->addOption('all-ref', null, InputOption::VALUE_REQUIRED, 'Git reference (branch or tag) to clone all app. Ej. 0.1.1', "")
|
|
->addOption('general-version', null, InputOption::VALUE_REQUIRED, 'Set options all-ref and docker-tag with this value. Ej. 0.1.1', "")
|
|
->addOption('general-version', null, InputOption::VALUE_REQUIRED, 'Set options all-ref and docker-tag with this value. Ej. 0.1.1', "")
|
|
- ->addOption('add-nginx-links', null, InputOption::VALUE_REQUIRED, 'Add NGINX links between dockers', false);
|
|
|
|
|
|
+ ->addOption('add-nginx-links', null, InputOption::VALUE_NONE, 'Add NGINX links between dockers', null);
|
|
}
|
|
}
|
|
|
|
|
|
protected function execute(InputInterface $input, OutputInterface $output)
|
|
protected function execute(InputInterface $input, OutputInterface $output)
|
|
@@ -323,7 +323,7 @@ class Release extends Command
|
|
$this->_ansible_vars["API_CIDR"] = "172.20.0.0/24";
|
|
$this->_ansible_vars["API_CIDR"] = "172.20.0.0/24";
|
|
$this->_ansible_vars["MYSQL_ROOT_PASSWORD"] = $this->_mysql_root_pass;
|
|
$this->_ansible_vars["MYSQL_ROOT_PASSWORD"] = $this->_mysql_root_pass;
|
|
|
|
|
|
- $this->_add_nginx_links = $input->getOption('add-nginx-links');
|
|
|
|
|
|
+ $this->_add_nginx_links = (boolean)$input->getOption('add-nginx-links');
|
|
|
|
|
|
$dObj = new DevOps\FileSystem(realpath($this->directory));
|
|
$dObj = new DevOps\FileSystem(realpath($this->directory));
|
|
$dObj->dirExists()->realpath();
|
|
$dObj->dirExists()->realpath();
|