/** * @param Options $options */ public function getInstaller(Options $options) { $exclude = new Exclude($options->getDeployExcludes()); $gitIgnore = new GitIgnore(sprintf("%s/.gitignore", $options->getMagentoRootDir()), $options->getIgnoreDirectories(), $options->appendToGitIgnore()); $installer = new CoreInstaller($exclude, $gitIgnore, $this->filesystem); return $installer; }
public function testGitIgnoreAppendFlag() { $options = new Options(array('magento-root-dir' => '/', 'magento-core-deploy' => array('git-ignore-append' => true))); $this->assertTrue($options->appendToGitIgnore()); }