| @@ 90-96 (lines=7) @@ | ||
| 87 | $this->deployer->config['log_file'] = $input->getOption('log'); |
|
| 88 | } |
|
| 89 | ||
| 90 | if (!empty($hosts)) { |
|
| 91 | $hosts = $this->deployer->hostSelector->getByHostnames($hosts); |
|
| 92 | } elseif (!empty($roles)) { |
|
| 93 | $hosts = $this->deployer->hostSelector->getByRoles($roles); |
|
| 94 | } else { |
|
| 95 | $hosts = $this->deployer->hostSelector->getHosts($stage); |
|
| 96 | } |
|
| 97 | ||
| 98 | if (empty($hosts)) { |
|
| 99 | throw new Exception('No host selected'); |
|
| @@ 113-119 (lines=7) @@ | ||
| 110 | $this->deployer->config['log_file'] = $input->getOption('log'); |
|
| 111 | } |
|
| 112 | ||
| 113 | if (!empty($hosts)) { |
|
| 114 | $hosts = $this->deployer->hostSelector->getByHostnames($hosts); |
|
| 115 | } elseif (!empty($roles)) { |
|
| 116 | $hosts = $this->deployer->hostSelector->getByRoles($roles); |
|
| 117 | } else { |
|
| 118 | $hosts = $this->deployer->hostSelector->getHosts($stage); |
|
| 119 | } |
|
| 120 | ||
| 121 | if (empty($hosts)) { |
|
| 122 | throw new Exception('No host selected'); |
|