[Nostromo] SensioLabs Insights

This commit is contained in:
Andrés Montañez 2016-12-31 04:32:47 -03:00
parent 6a4816a61d
commit 233faed09f
3 changed files with 8 additions and 5 deletions

View file

@ -2,7 +2,11 @@
<?php
date_default_timezone_set('UTC');
require __DIR__ . '/../../../autoload.php';
if (file_exists(__DIR__ . '/../../../autoload.php')) {
require __DIR__ . '/../../../autoload.php';
} elseif (file_exists(__DIR__ . '/../vendor/autoload.php')) {
require __DIR__ . '/../vendor/autoload.php';
}
use Mage\MageApplication;

View file

@ -22,9 +22,8 @@
},
"autoload": {
"psr-4": {
"Symfony\\Component\\": "src/Symfony/Component/"
"Mage\\": "src/Mage/"
},
"psr-0": { "": "src/" },
"exclude-from-classmap": [
"**/Tests/"
]
@ -33,4 +32,4 @@
"bin-dir": "bin"
},
"bin": ["bin/mage"]
}
}

View file

@ -242,7 +242,7 @@ class DeployCommand extends AbstractCommand
return true;
}
if ($this->runtime->getWorkingHost() != null) {
if ($this->runtime->getWorkingHost()) {
$output->writeln(sprintf(' Starting <fg=black;options=bold>%s</> tasks on host <fg=black;options=bold>%s</>:', $this->getStageName(), $this->runtime->getWorkingHost()));
} else {
$output->writeln(sprintf(' Starting <fg=black;options=bold>%s</> tasks:', $this->getStageName()));