Skip to content

Commit

Permalink
Add initial code to overwrite deploystrategy
Browse files Browse the repository at this point in the history
Added initial code which overrides deploystrategy if
PLATFORM_PROJECT environment variable is set.
  • Loading branch information
Wojciech Naruniec committed Mar 10, 2016
1 parent b94f3f4 commit 59c9786
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/MagentoHackathon/Composer/Magento/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,13 @@ public function __construct(IOInterface $io, Composer $composer, $type = 'magent
$this->isForced = (bool)$extra['magento-force'];
}

if (false !== getenv('PLATFORM_PROJECT')) {
$this->setDeployStrategy('none');
}

if (isset($extra['magento-deploystrategy'])) {
$this->setDeployStrategy((string)$extra['magento-deploystrategy']);
}

// @todo this is possible place to add env related modification

if (!empty($extra['auto-append-gitignore'])) {
$this->appendGitIgnore = true;
Expand Down

0 comments on commit 59c9786

Please sign in to comment.