@@ 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'); |
@@ 120-126 (lines=7) @@ | ||
117 | $this->deployer->config['log_file'] = $input->getOption('log'); |
|
118 | } |
|
119 | ||
120 | if (!empty($hosts)) { |
|
121 | $hosts = $this->deployer->hostSelector->getByHostnames($hosts); |
|
122 | } elseif (!empty($roles)) { |
|
123 | $hosts = $this->deployer->hostSelector->getByRoles($roles); |
|
124 | } else { |
|
125 | $hosts = $this->deployer->hostSelector->getHosts($stage); |
|
126 | } |
|
127 | ||
128 | if (empty($hosts)) { |
|
129 | throw new Exception('No host selected'); |