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