Esempio n. 1
0
 /**
  * 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);
 }
Esempio n. 2
0
 /**
  * @return \Martha\Core\Service\Logger\DatabaseLogger
  */
 public function getLogger()
 {
     return $this->system->getLogger();
 }