Skip to content
Snippets Groups Projects
Commit 27c53700 authored by Daniel Hürtgen's avatar Daniel Hürtgen
Browse files

TASK: Provide status messages while installing standards

parent ecb4fea6
2 merge requests!21Release 0.3.0,!20Feature/17 write status messages to stdout
......@@ -100,11 +100,14 @@ class Installer extends LibraryInstaller
$filesystem = new SymfonyFilesystem();
$sourceStandards = $this->getSourceStandards($package);
$destStandardsBasePath = $this->getPHPCodeSnifferStandardsBasePath($repo);
$this->io->writeError(' Installing PHP-CodeSniffer Standards:', false);
foreach ($sourceStandards as $sourceStandard) {
$this->io->writeError(sprintf(' <info>%s</info>', $sourceStandard->getName()));
$sourcePath = $sourceStandard->getPath();
$destPath = $destStandardsBasePath . DIRECTORY_SEPARATOR . $sourceStandard->getName();
$filesystem->mirror($sourcePath, $destPath, null, array('override' => $override));
}
$this->io->writeError('');
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment