mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-08-26 05:10:17 +02:00
add front controller cleaning task
This commit is contained in:
parent
132539da91
commit
f04beb142e
23
Mage/Task/BuiltIn/Symfony2/FrontControllerCleanTask.php
Normal file
23
Mage/Task/BuiltIn/Symfony2/FrontControllerCleanTask.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace Task;
|
||||
|
||||
use Mage\Task\AbstractTask;
|
||||
|
||||
/**
|
||||
* @author Muhammad Surya Ihsanuddin <surya.kejawen@gmail.com>
|
||||
*/
|
||||
class FrontControllerCleanTask extends AbstractTask
|
||||
{
|
||||
public function getName()
|
||||
{
|
||||
return 'Cleaning Project';
|
||||
}
|
||||
|
||||
public function run()
|
||||
{
|
||||
$command = 'rm -rf web/app_*.php';
|
||||
$result = $this->runCommandRemote($command);
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user