- updated demousage

- updated FroxlorPkgCreator (fix for manual added files)
- first cron version for remote server data deploying
This commit is contained in:
Andreas Burchert (scarya)
2010-10-20 21:33:39 +00:00
parent 7a83a01095
commit 84637d82d4
3 changed files with 47 additions and 10 deletions

View File

@@ -55,7 +55,7 @@ class FroxlorPkgCreator
/**
* Manual added files.
* Uses key as filename!
* Contains an array with an array (name, data);
*
* @var array
*/
@@ -131,7 +131,7 @@ class FroxlorPkgCreator
*/
public function addFile($name, $data)
{
$this->_manualFiles[$name] = $data;
$this->_manualFiles[] = array("name" => $name, "data" => $data;
}
/**
@@ -156,8 +156,8 @@ class FroxlorPkgCreator
}
// add manual files
foreach ($this->_manualFiles as $key=>$var) {
$zip->addFromString($key, $var);
foreach ($this->_manualFiles as $var) {
$zip->addFromString($var['name'], $var['data']);
}
// close it

View File

@@ -85,4 +85,5 @@ FroxlorDeployfileCreator::saveListTo("deploy.txt");
/*
* and create a zip archive
*/
new FroxlorPkgCreator("deploy.txt", "deploy.zip");
$pkg = new FroxlorPkgCreator("deploy.txt", "deploy.zip");
$pkg->pack();