Browse Source

[Nostromo] SensioLabs Insights

pull/1/head
Andrés Montañez 8 years ago
parent
commit
233faed09f
  1. 6
      bin/mage
  2. 5
      composer.json
  3. 2
      src/Mage/Command/BuiltIn/DeployCommand.php

6
bin/mage

@ -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;

5
composer.json

@ -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"]
}
}

2
src/Mage/Command/BuiltIn/DeployCommand.php

@ -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()));

Loading…
Cancel
Save