PHPComposter\PHPComposter\Plugin::cleanUp PHP Method

cleanUp() protected method

Clean up previous installation.
Since: 0.1.0
protected cleanUp ( Composer\Util\Filesystem $filesystem )
$filesystem Composer\Util\Filesystem Reference to the Filesystem instance.
    protected function cleanUp(Filesystem $filesystem)
    {
        $composterPath = Paths::getPath('git_composter');
        if (static::$io->isVeryVerbose()) {
            static::$io->write(sprintf(_('Removing previous PHP Composter actions at %1$s'), $composterPath), true);
        }
        $filesystem->emptyDirectory($composterPath, true);
        $composterTemplate = Paths::getPath('root_template');
        if (static::$io->isVeryVerbose()) {
            static::$io->write(sprintf(_('Removing previous PHP Composter code at %1$s'), $composterTemplate), true);
        }
        $filesystem->emptyDirectory($composterTemplate, true);
    }