Differential D16565 Diff 39942 src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php
Show All 17 Lines | final class DrydockWorkingCopyBlueprintImplementation | ||||
public function getBlueprintIcon() { | public function getBlueprintIcon() { | ||||
return 'fa-folder-open'; | return 'fa-folder-open'; | ||||
} | } | ||||
public function getDescription() { | public function getDescription() { | ||||
return pht('Allows Drydock to check out working copies of repositories.'); | return pht('Allows Drydock to check out working copies of repositories.'); | ||||
} | } | ||||
public function getLeaseAttributesSpecification() { | |||||
return array( | |||||
'repositories.map' => 'map<string, map<string, wild>>', | |||||
'repositories.strict' => 'optional bool', | |||||
); | |||||
} | |||||
public function getLeaseAttributesDescriptions() { | |||||
return array( | |||||
'repositories.map' => pht( | |||||
'Maps clone folder names to information about what repositories they '. | |||||
'should contain and what state those repositories should be in.'), | |||||
'repositories.strict' => pht( | |||||
'Set to true in order to force the working copy to contain only '. | |||||
'the repositories specified.'), | |||||
); | |||||
} | |||||
public function getLeaseAttributesDataExample() { | |||||
return array( | |||||
'repositories.map' => array( | |||||
'janitorial-services' => array( | |||||
'phid' => 'PHID-REPO-gb3x27pjw4wffij3od44', | |||||
'default' => true, | |||||
'commit' => '3a66dac400a50632f442aed6cb8cf65c80e5ae70', | |||||
), | |||||
), | |||||
'repositories.strict' => true, | |||||
); | |||||
} | |||||
public function canAnyBlueprintEverAllocateResourceForLease( | public function canAnyBlueprintEverAllocateResourceForLease( | ||||
DrydockLease $lease) { | DrydockLease $lease) { | ||||
return true; | return true; | ||||
} | } | ||||
public function canEverAllocateResourceForLease( | public function canEverAllocateResourceForLease( | ||||
DrydockBlueprint $blueprint, | DrydockBlueprint $blueprint, | ||||
DrydockLease $lease) { | DrydockLease $lease) { | ||||
▲ Show 20 Lines • Show All 486 Lines • Show Last 20 Lines |