New reorder of classes and configuration. New instantiation of Tasks.

This commit is contained in:
Andrs Montaez
2011-11-23 01:17:06 -02:00
parent 3caa3d7313
commit b161220e69
23 changed files with 257 additions and 108 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
class Mage_Task_BuiltIn_Deployment_Rsync
extends Mage_Task_TaskAbstract
{
public function getName()
{
return 'Rsync (built-in)';
}
public function run($config)
{
$ignores = array(
'--exclude .git',
'--exclude .svn',
'--exclude .mage',
'--exclude .gitignore'
);
$command = 'rsync -avz '
. implode(' ', $ignores) .' '
. $config['deploy']['deploy-from'] . ' '
. $config['deploy']['user'] . '@' . $config['deploy']['host'] . ':' . $config['deploy']['deploy-to'];
$result = $this->_runLocalCommand($command);
return $result;
}
}