Differential D7908 Diff 17903 src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php
<?php | <?php | ||||
final class DrydockWorkingCopyBlueprintImplementation | final class DrydockWorkingCopyBlueprintImplementation | ||||
extends DrydockBlueprintImplementation { | extends DrydockBlueprintImplementation { | ||||
public function isEnabled() { | public function isEnabled() { | ||||
return true; | return true; | ||||
} | } | ||||
public function getBlueprintName() { | |||||
return pht('Working Copy'); | |||||
} | |||||
public function getDescription() { | public function getDescription() { | ||||
return pht('Allocates out working copies of repositories.'); | return pht('Allows Drydock to check out working copies of repositories.'); | ||||
} | } | ||||
protected function canAllocateLease( | protected function canAllocateLease( | ||||
DrydockResource $resource, | DrydockResource $resource, | ||||
DrydockLease $lease) { | DrydockLease $lease) { | ||||
$resource_repo = $resource->getAttribute('repositoryID'); | $resource_repo = $resource->getAttribute('repositoryID'); | ||||
$lease_repo = $lease->getAttribute('repositoryID'); | $lease_repo = $lease->getAttribute('repositoryID'); | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |