Changeset View
Changeset View
Standalone View
Standalone View
src/config/source/ArcanistFilesystemConfigurationSource.php
Show All 30 Lines | abstract class ArcanistFilesystemConfigurationSource | ||||
abstract public function getFileKindDisplayName(); | abstract public function getFileKindDisplayName(); | ||||
protected function didReadFilesystemValues(array $values) { | protected function didReadFilesystemValues(array $values) { | ||||
return $values; | return $values; | ||||
} | } | ||||
protected function writeToStorage($values) { | protected function writeToStorage($values) { | ||||
$content = id(new PhutilJSON()) | $content = (new PhutilJSON()) | ||||
->encodeFormatted($values); | ->encodeFormatted($values); | ||||
$path = $this->path; | $path = $this->path; | ||||
// If the containing directory does not exist yet, create it. | // If the containing directory does not exist yet, create it. | ||||
// | // | ||||
// This is expected when (for example) you first write to project | // This is expected when (for example) you first write to project | ||||
// configuration in a Git working copy: the ".git/arc" directory will | // configuration in a Git working copy: the ".git/arc" directory will | ||||
Show All 11 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0