@@ 391-401 (lines=11) @@ | ||
388 | $this->DeployerID = Member::currentUserID(); |
|
389 | } |
|
390 | ||
391 | if($this->DeployerID) { |
|
392 | $deployer = $this->Deployer(); |
|
393 | $message = sprintf( |
|
394 | 'Deploy to %s initiated by %s (%s), with IP address %s', |
|
395 | $environment->getFullName(), |
|
396 | $deployer->getName(), |
|
397 | $deployer->Email, |
|
398 | \Controller::curr()->getRequest()->getIP() |
|
399 | ); |
|
400 | $log->write($message); |
|
401 | } |
|
402 | ||
403 | return Resque::enqueue('deploy', 'DeployJob', $args, true); |
|
404 | } |
@@ 179-191 (lines=13) @@ | ||
176 | $this->AuthorID = Member::currentUserID(); |
|
177 | } |
|
178 | ||
179 | if($this->AuthorID) { |
|
180 | $author = $this->Author(); |
|
181 | $message = sprintf( |
|
182 | 'Data transfer on %s (%s, %s) initiated by %s (%s), with IP address %s', |
|
183 | $env->getFullName(), |
|
184 | $this->Direction, |
|
185 | $this->Mode, |
|
186 | $author->getName(), |
|
187 | $author->Email, |
|
188 | Controller::curr()->getRequest()->getIP() |
|
189 | ); |
|
190 | $log->write($message); |
|
191 | } |
|
192 | ||
193 | $token = Resque::enqueue('snapshot', 'DataTransferJob', $args, true); |
|
194 | $this->ResqueToken = $token; |