| @@ 69-82 (lines=14) @@ | ||
| 66 | /** |
|
| 67 | * @return void |
|
| 68 | */ |
|
| 69 | public function addCurrentTestEnvironment() |
|
| 70 | { |
|
| 71 | // what are we doing? |
|
| 72 | $log = usingLog()->startAction("add current test environment to targets table"); |
|
| 73 | ||
| 74 | // get the details to add |
|
| 75 | $testEnvSig = $this->st->getTestEnvironmentSignature(); |
|
| 76 | ||
| 77 | // add it |
|
| 78 | usingRuntimeTable($this->entryKey)->addItem(FromTargetsTable::SIGNATURE_KEY, $testEnvSig); |
|
| 79 | ||
| 80 | // all done |
|
| 81 | $log->endAction(); |
|
| 82 | } |
|
| 83 | ||
| 84 | /** |
|
| 85 | * @return void |
|
| @@ 78-88 (lines=11) @@ | ||
| 75 | * |
|
| 76 | * @return void |
|
| 77 | */ |
|
| 78 | public function addHost($hostId, $hostDetails) |
|
| 79 | { |
|
| 80 | // what are we doing? |
|
| 81 | $log = usingLog()->startAction("add host '{$hostId}' to current test environment hosts table"); |
|
| 82 | ||
| 83 | // add it |
|
| 84 | usingRuntimeTable($this->entryKey)->addItem($hostId, $hostDetails); |
|
| 85 | ||
| 86 | // all done |
|
| 87 | $log->endAction(); |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * removeHost |
|