Source of file SetupDirectoryAndClone.php
Size: 0,715 Bytes - Last Modified: 2021-12-23T10:42:13+00:00
/var/www/docs.ssmods.com/process/src/src/Commands/First/SetupDirectoryAndClone.php
12345678910111213141516171819202122232425262728293031 | <?php namespace Sunnysideup\ModuleChecks\Commands\First; use Sunnysideup\ModuleChecks\Commands\FirstAbstract; class SetupDirectoryAndClone extends FirstAbstract { /** * should it be included by default? * @var bool */ private static $enabled = true; public function run(): bool { if (! $this->repo->getDirectory()) { $this->logError('Could not set up directory'); die('Please make sure that directory can be set up'); } $this->repo->checkOrSetGitCommsWrapper($forceNew = true); return $this->hasError(); } public function getDescription(): string { return 'Set up directory and checkout repo'; } } |