Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/build/HarbormasterBuildLog.php
Show All 14 Lines | final class HarbormasterBuildLog extends HarbormasterDAO | ||||
const CHUNK_BYTE_LIMIT = 102400; | const CHUNK_BYTE_LIMIT = 102400; | ||||
/** | /** | ||||
* The log is encoded as plain text. | * The log is encoded as plain text. | ||||
*/ | */ | ||||
const ENCODING_TEXT = 'text'; | const ENCODING_TEXT = 'text'; | ||||
public function __destruct() { | public function __destruct() { | ||||
if ($this->live) { | if ($this->start) { | ||||
$this->finalize($this->start); | $this->finalize($this->start); | ||||
} | } | ||||
} | } | ||||
public static function initializeNewBuildLog( | public static function initializeNewBuildLog( | ||||
HarbormasterBuildTarget $build_target) { | HarbormasterBuildTarget $build_target) { | ||||
return id(new HarbormasterBuildLog()) | return id(new HarbormasterBuildLog()) | ||||
▲ Show 20 Lines • Show All 188 Lines • Show Last 20 Lines |