- updated demousage
- updated FroxlorPkgCreator (fix for manual added files) - first cron version for remote server data deploying
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user