Differential D19355 Diff 46314 src/applications/almanac/servicetype/AlmanacClusterRepositoryServiceType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/servicetype/AlmanacClusterRepositoryServiceType.php
Show All 14 Lines | final class AlmanacClusterRepositoryServiceType | ||||
public function getServiceTypeDescription() { | public function getServiceTypeDescription() { | ||||
return pht( | return pht( | ||||
'Defines a repository service for use in a Phabricator cluster.'); | 'Defines a repository service for use in a Phabricator cluster.'); | ||||
} | } | ||||
public function getFieldSpecifications() { | public function getFieldSpecifications() { | ||||
return array( | return array( | ||||
'closed' => id(new PhabricatorTextEditField()), | 'closed' => id(new PhabricatorBoolEditField()) | ||||
->setOptions( | |||||
pht('Allow New Repositories'), | |||||
pht('Prevent New Repositories')) | |||||
->setValue(false), | |||||
); | ); | ||||
} | } | ||||
public function getBindingFieldSpecifications(AlmanacBinding $binding) { | public function getBindingFieldSpecifications(AlmanacBinding $binding) { | ||||
$protocols = array( | $protocols = array( | ||||
array( | array( | ||||
'value' => 'http', | 'value' => 'http', | ||||
'port' => 80, | 'port' => 80, | ||||
Show All 28 Lines |