Differential D10585 Diff 25583 src/applications/harbormaster/step/HarbormasterLeaseHostBuildStepImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/step/HarbormasterLeaseHostBuildStepImplementation.php
| Show All 31 Lines | public function execute( | ||||
| $lease->waitUntilActive(); | $lease->waitUntilActive(); | ||||
| // Create the associated artifact. | // Create the associated artifact. | ||||
| $artifact = $build->createArtifact( | $artifact = $build->createArtifact( | ||||
| $build_target, | $build_target, | ||||
| $settings['name'], | $settings['name'], | ||||
| HarbormasterBuildArtifact::TYPE_HOST); | HarbormasterBuildArtifact::TYPE_HOST); | ||||
| $artifact->setArtifactData(array( | $artifact->setArtifactData(array( | ||||
| 'drydock-lease' => $lease->getID())); | 'drydock-lease' => $lease->getID(), | ||||
| )); | |||||
| $artifact->save(); | $artifact->save(); | ||||
| } | } | ||||
| public function getArtifactOutputs() { | public function getArtifactOutputs() { | ||||
| return array( | return array( | ||||
| array( | array( | ||||
| 'name' => pht('Leased Host'), | 'name' => pht('Leased Host'), | ||||
| 'key' => $this->getSetting('name'), | 'key' => $this->getSetting('name'), | ||||
| Show All 21 Lines | |||||