Changeset View
Changeset View
Standalone View
Standalone View
src/configuration/ArcanistConfigurationManager.php
Show First 20 Lines • Show All 252 Lines • ▼ Show 20 Lines | public function setUserConfigurationFileLocation($custom_arcrc) { | ||||
} | } | ||||
$this->customArcrcFilename = $custom_arcrc; | $this->customArcrcFilename = $custom_arcrc; | ||||
$this->userConfigCache = null; | $this->userConfigCache = null; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getUserConfigurationFileLocation() { | public function getUserConfigurationFileLocation() { | ||||
if (strlen($this->customArcrcFilename)) { | if ($this->customArcrcFilename !== null) { | ||||
return $this->customArcrcFilename; | return $this->customArcrcFilename; | ||||
} | } | ||||
if (phutil_is_windows()) { | if (phutil_is_windows()) { | ||||
return getenv('APPDATA').'/.arcrc'; | return getenv('APPDATA').'/.arcrc'; | ||||
} else { | } else { | ||||
return getenv('HOME').'/.arcrc'; | return getenv('HOME').'/.arcrc'; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 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