mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 15:46:44 +02:00
18 lines
442 B
PHP
18 lines
442 B
PHP
<?php
|
|
|
|
class LocalDeployer extends NoopDeployer
|
|
{
|
|
public function unlinkAppFile($relative_path)
|
|
{
|
|
self::println("Deleting file \"$relative_path\" from deployed test location…");
|
|
if (file_exists(APP_PATH."/$relative_path"))
|
|
{
|
|
unlink(APP_PATH."/$relative_path");
|
|
self::println("Deleted file \"$relative_path\" from deployed test location");
|
|
}
|
|
else
|
|
{
|
|
self::println("No such file to delete: \"$relative_path\"");
|
|
}
|
|
}
|
|
}
|