Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/plan/HarbormasterBuildPlanBehavior.php
Show All 9 Lines | final class HarbormasterBuildPlanBehavior | ||||
private $editInstructions; | private $editInstructions; | ||||
const BEHAVIOR_RUNNABLE = 'runnable'; | const BEHAVIOR_RUNNABLE = 'runnable'; | ||||
const RUNNABLE_IF_VIEWABLE = 'view'; | const RUNNABLE_IF_VIEWABLE = 'view'; | ||||
const RUNNABLE_IF_EDITABLE = 'edit'; | const RUNNABLE_IF_EDITABLE = 'edit'; | ||||
const BEHAVIOR_RESTARTABLE = 'restartable'; | const BEHAVIOR_RESTARTABLE = 'restartable'; | ||||
const RESTARTABLE_ALWAYS = 'always'; | const RESTARTABLE_ALWAYS = 'always'; | ||||
const RESTARTABLE_IF_FAILED = 'failed'; | |||||
const RESTARTABLE_NEVER = 'never'; | const RESTARTABLE_NEVER = 'never'; | ||||
const BEHAVIOR_DRAFTS = 'hold-drafts'; | const BEHAVIOR_DRAFTS = 'hold-drafts'; | ||||
const DRAFTS_ALWAYS = 'always'; | const DRAFTS_ALWAYS = 'always'; | ||||
const DRAFTS_IF_BUILDING = 'building'; | const DRAFTS_IF_BUILDING = 'building'; | ||||
const DRAFTS_NEVER = 'never'; | const DRAFTS_NEVER = 'never'; | ||||
const BEHAVIOR_BUILDABLE = 'buildable'; | const BEHAVIOR_BUILDABLE = 'buildable'; | ||||
▲ Show 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | $restart_options = array( | ||||
id(new HarbormasterBuildPlanBehaviorOption()) | id(new HarbormasterBuildPlanBehaviorOption()) | ||||
->setKey(self::RESTARTABLE_ALWAYS) | ->setKey(self::RESTARTABLE_ALWAYS) | ||||
->setIcon('fa-repeat green') | ->setIcon('fa-repeat green') | ||||
->setName(pht('Always')) | ->setName(pht('Always')) | ||||
->setIsDefault(true) | ->setIsDefault(true) | ||||
->setDescription( | ->setDescription( | ||||
pht('The build may be restarted.')), | pht('The build may be restarted.')), | ||||
id(new HarbormasterBuildPlanBehaviorOption()) | id(new HarbormasterBuildPlanBehaviorOption()) | ||||
->setKey(self::RESTARTABLE_IF_FAILED) | |||||
->setIcon('fa-times-circle-o yellow') | |||||
->setName(pht('If Failed')) | |||||
->setDescription( | |||||
pht('The build may be restarted if it has failed.')), | |||||
id(new HarbormasterBuildPlanBehaviorOption()) | |||||
->setKey(self::RESTARTABLE_NEVER) | ->setKey(self::RESTARTABLE_NEVER) | ||||
->setIcon('fa-times red') | ->setIcon('fa-times red') | ||||
->setName(pht('Never')) | ->setName(pht('Never')) | ||||
->setDescription( | ->setDescription( | ||||
pht('The build may not be restarted.')), | pht('The build may not be restarted.')), | ||||
); | ); | ||||
$run_options = array( | $run_options = array( | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |