Code Duplication    Length = 10-10 lines in 2 locations

code/model/jobs/DNCreateEnvironment.php 1 location

@@ 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();

code/model/jobs/DNDeployment.php 1 location

@@ 322-331 (lines=10) @@
319
		return Resque::enqueue('deploy', 'DeployJob', $args, true);
320
	}
321
322
	public function start() {
323
		$log = $this->log();
324
		$token = $this->enqueueDeployment();
325
		$this->ResqueToken = $token;
326
		$this->Status = 'Queued';
327
		$this->write();
328
329
		$message = sprintf('Deploy queued as job %s', $token);
330
		$log->write($message);
331
	}
332
}
333