Differential D7908 Diff 17903 src/applications/drydock/blueprint/DrydockPreallocatedHostBlueprintImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/blueprint/DrydockPreallocatedHostBlueprintImplementation.php
<?php | <?php | ||||
final class DrydockPreallocatedHostBlueprintImplementation | final class DrydockPreallocatedHostBlueprintImplementation | ||||
extends DrydockBlueprintImplementation { | extends DrydockBlueprintImplementation { | ||||
public function isEnabled() { | public function isEnabled() { | ||||
return true; | return true; | ||||
} | } | ||||
public function getBlueprintName() { | |||||
return pht('Remote Host (Preallocated)'); | |||||
} | |||||
public function getDescription() { | public function getDescription() { | ||||
return pht('Leases out preallocated, remote hosts.'); | return pht('Allows Drydock to run on specific remote hosts you configure.'); | ||||
} | } | ||||
public function canAllocateMoreResources(array $pool) { | public function canAllocateMoreResources(array $pool) { | ||||
return false; | return false; | ||||
} | } | ||||
protected function executeAllocateResource(DrydockLease $lease) { | protected function executeAllocateResource(DrydockLease $lease) { | ||||
throw new Exception("Preallocated hosts can't be dynamically allocated."); | throw new Exception("Preallocated hosts can't be dynamically allocated."); | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |