| @@ 161-170 (lines=10) @@ | ||
| 158 | return Resque::enqueue('create', 'CreateEnvJob', $args, true); |
|
| 159 | } |
|
| 160 | ||
| 161 | public function start() { |
|
| 162 | $log = $this->log(); |
|
| 163 | $token = $this->enqueueCreation(); |
|
| 164 | $this->ResqueToken = $token; |
|
| 165 | $this->Status = 'Queued'; |
|
| 166 | $this->write(); |
|
| 167 | ||
| 168 | $message = sprintf('Environment creation queued as job %s', $token); |
|
| 169 | $log->write($message); |
|
| 170 | } |
|
| 171 | ||
| 172 | public function createEnvironment() { |
|
| 173 | $backend = $this->getBackend(); |
|
| @@ 326-335 (lines=10) @@ | ||
| 323 | return Resque::enqueue('deploy', 'DeployJob', $args, true); |
|
| 324 | } |
|
| 325 | ||
| 326 | public function start() { |
|
| 327 | $log = $this->log(); |
|
| 328 | $token = $this->enqueueDeployment(); |
|
| 329 | $this->ResqueToken = $token; |
|
| 330 | $this->Status = 'Queued'; |
|
| 331 | $this->write(); |
|
| 332 | ||
| 333 | $message = sprintf('Deploy queued as job %s', $token); |
|
| 334 | $log->write($message); |
|
| 335 | } |
|
| 336 | } |
|
| 337 | ||