Source of file TearDown.php
Size: 1,028 Bytes - Last Modified: 2021-12-23T10:42:13+00:00
/var/www/docs.ssmods.com/process/src/src/Commands/Last/TearDown.php
12345678910111213141516171819202122232425262728293031323334353637383940414243 | <?php namespace Sunnysideup\ModuleChecks\Commands\Last; use Sunnysideup\ModuleChecks\Commands\LastAbstract; class TearDown extends LastAbstract { /** * should it be included by default? * @var bool */ private static $enabled = true; public function run(): bool { if (! $this->repo->add()) { $this->logError('Could not add files module to Repo'); return false; } if (! $this->repo->commit()) { $this->logError('Could not commit files to Repo'); return false; } if (! $this->repo->push()) { $this->logError('Could not push files to Repo'); return false; } if (! $this->repo->removeClone()) { $this->logError('Could not remove local copy of repo'); return false; } return $this->hasError(); } public function getDescription(): string { return 'Git Add, Git Commit, Git Push and Delete Directory'; } } |