/** * Cleans up after the build, removing unnecessary files, etc. * * @param Build $build */ protected function cleanupBuild(Build $build) { $this->system->getEventManager()->trigger('build.pre.cleanup', $build); file_put_contents($this->outputFile, $this->colorizeOutput(file_get_contents($this->outputFile))); // empty out the build directory: exec('rm -rf ' . $this->workingDir); $this->system->getEventManager()->trigger('build.post.cleanup', $build); }
/** * @return \Martha\Core\Service\Logger\DatabaseLogger */ public function getLogger() { return $this->system->getLogger(); }