| @@ 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(); |
|
| @@ 334-343 (lines=10) @@ | ||
| 331 | return Resque::enqueue('deploy', 'DeployJob', $args, true); |
|
| 332 | } |
|
| 333 | ||
| 334 | public function start() { |
|
| 335 | $log = $this->log(); |
|
| 336 | $token = $this->enqueueDeployment(); |
|
| 337 | $this->ResqueToken = $token; |
|
| 338 | $this->Status = 'Queued'; |
|
| 339 | $this->write(); |
|
| 340 | ||
| 341 | $message = sprintf('Deploy queued as job %s', $token); |
|
| 342 | $log->write($message); |
|
| 343 | } |
|
| 344 | } |
|
| 345 | ||