Tweaks on port definition.

Now port can be defined into the hostname.
This commit is contained in:
Andrs Montaez
2012-02-15 19:08:16 -02:00
parent e42a1f1193
commit 51e7de0676
8 changed files with 22 additions and 9 deletions
+13
View File
@@ -71,6 +71,19 @@ class Mage_Config
return $this;
}
public function getHostName()
{
$info = explode(':', $this->_host);
return $info[0];
}
public function getHostPort()
{
$info = explode(':', $this->_host);
$info[] = $this->deployment('port', '22');
return $info[1];
}
public function getHost()
{
return $this->_host;