public function writeDeploymentFile($localPaths)
{
$s = '';
foreach ($localPaths as $k => $v) {
$s .= "{$v}={$k}\n";
}
$file = $this->localDir . '/' . $this->deploymentFile;
@mkdir(dirname($file), 0777, TRUE);
// @ dir may exists
file_put_contents($file, gzdeflate($s, 9));
return $file;
}