Differential D20252 Diff 48373 src/applications/harbormaster/storage/configuration/HarbormasterBuildPlan.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/configuration/HarbormasterBuildPlan.php
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Lines | public function assertHasRunCapability(PhabricatorUser $viewer) { | ||||
} | } | ||||
PhabricatorPolicyFilter::requireCapability( | PhabricatorPolicyFilter::requireCapability( | ||||
$viewer, | $viewer, | ||||
$this, | $this, | ||||
$capability); | $capability); | ||||
} | } | ||||
public function canRestartBuildPlan() { | |||||
$restartable = HarbormasterBuildPlanBehavior::BEHAVIOR_RESTARTABLE; | |||||
$is_restartable = HarbormasterBuildPlanBehavior::RESTARTABLE_ALWAYS; | |||||
$option = HarbormasterBuildPlanBehavior::getBehavior($restartable) | |||||
->getPlanOption($this); | |||||
return ($option->getKey() === $is_restartable); | |||||
} | |||||
/* -( PhabricatorSubscribableInterface )----------------------------------- */ | /* -( PhabricatorSubscribableInterface )----------------------------------- */ | ||||
public function isAutomaticallySubscribed($phid) { | public function isAutomaticallySubscribed($phid) { | ||||
return false; | return false; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines |