New configuration usage. Changes on Releases Listing.

This commit is contained in:
Andrs Montaez
2012-01-01 15:46:05 -02:00
parent dd46e4d637
commit 2e35bfe129
9 changed files with 124 additions and 96 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ abstract class Mage_Task_TaskAbstract
public abstract function run();
public final function __construct($config)
public final function __construct(Mage_Config $config)
{
$this->_config = $config;
}
@@ -24,8 +24,8 @@ abstract class Mage_Task_TaskAbstract
protected final function _runRemoteCommand($command, &$output = null)
{
$localCommand = 'ssh '
. $this->_config['deploy']['deployment']['user'] . '@' . $this->_config['deploy']['host'] . ' '
. '"cd ' . $this->_config['deploy']['deployment']['to'] . ' && '
. $this->_config->deployment('user') . '@' . $this->_config->getHost() . ' '
. '"cd ' . $this->_config->deployment('to') . ' && '
. $command . '"';
return $this->_runLocalCommand($localCommand, $output);