2012-02-05 00:42:54 -02:00
|
|
|
<?php
|
|
|
|
|
class Mage_Task_BuiltIn_Scm_RemoveClone
|
|
|
|
|
extends Mage_Task_TaskAbstract
|
|
|
|
|
{
|
|
|
|
|
private $_name = 'SCM Remove Clone [built-in]';
|
|
|
|
|
private $_source = null;
|
2012-09-21 00:23:07 -03:00
|
|
|
|
2012-02-05 00:42:54 -02:00
|
|
|
public function getName()
|
|
|
|
|
{
|
|
|
|
|
return $this->_name;
|
|
|
|
|
}
|
|
|
|
|
|
2012-09-21 00:23:07 -03:00
|
|
|
public function init()
|
2012-02-05 00:42:54 -02:00
|
|
|
{
|
2012-09-21 00:23:07 -03:00
|
|
|
$this->_source = $this->getConfig()->deployment('source');
|
2012-02-05 00:42:54 -02:00
|
|
|
}
|
2012-09-21 00:23:07 -03:00
|
|
|
|
2012-02-05 00:42:54 -02:00
|
|
|
public function run()
|
|
|
|
|
{
|
|
|
|
|
return $this->_runLocalCommand('rm -rf ' . $this->_source['temporal']);
|
|
|
|
|
}
|
|
|
|
|
}
|