- added exlude dir variable to DfC

- updated demousage
This commit is contained in:
Andreas Burchert (scarya)
2010-10-20 20:54:57 +00:00
parent b58a9d3b88
commit 71d3410b4f
2 changed files with 38 additions and 1 deletions

View File

@@ -56,3 +56,33 @@ $transport = FroxlorSshTransport::usePublicKey("test.froxlor.org", 22, "testUser
* Clean up and finish.
*/
$transport->close();
/*
* *********************************************************************************************************************
*
* Demousage about deploying
*/
/*
* create a file list and save it internaly
*/
FroxlorDeployfileCreator::createList(
array(
"/var/www/froxlor/lib/",
"/var/www/froxlor/lng/",
"/var/www/froxlor/scripts/",
"/var/www/froxlor/actions/",
"/var/www/froxlor/templates/"
)
);
/*
* save it to disk file
*/
FroxlorDeployfileCreator::saveListTo("deploy.txt");
/*
* and create a zip archive
*/
new FroxlorPkgCreator("deploy.txt", "deploy.zip");