Skip to content

Commit 76c696c

Browse files
committed
restoreDEvonfwIde for console
1 parent 8fd06c9 commit 76c696c

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

documentation/Functions.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ installDevonfwIde(["java","mvn"], "2020.08.001")
2525
#### example
2626
restoreDevonfwIde(["java","mvn"], "2020.08.001")
2727
#### details
28-
The installation of the devonfw IDE is executed in a startup script.
29-
28+
In the Katacoda Environment the installation of the devonfw IDE is executed in a startup script.
3029
***
3130

3231
### installCobiGen

runners/console/index.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class Console extends Runner {
5656
runRestoreDevonfwIde(step: Step, command: Command): RunResult {
5757
let result = new RunResult();
5858
result.returnCode = 0;
59-
result = this.runInstallDevonfwIde (step, command);
59+
result = this.runInstallDevonfwIde(step, command);
6060
return result;
6161
}
6262

@@ -167,18 +167,7 @@ export class Console extends Runner {
167167
}
168168

169169
async assertRestoreDevonfwIde(step: Step, command: Command, result: RunResult) {
170-
let installedTools = command.parameters[0];
171-
172-
let assert = new Assertions()
173-
.noErrorCode(result)
174-
.noException(result)
175-
.directoryExits(path.join(this.getWorkingDirectory(), "devonfw", "software"))
176-
.directoryExits(path.join(this.getWorkingDirectory(), "devonfw", "workspaces", "main"));
177-
178-
for(let i = 0; i < installedTools.length; i++) {
179-
if(installedTools[i] == "mvn") installedTools[i] = "maven";
180-
assert.directoryExits(path.join(this.getWorkingDirectory(), "devonfw", "software", installedTools[i]));
181-
}
170+
this.assertInstallDevonfwIde(step, command, result);
182171
}
183172

184173
async assertInstallCobiGen(step: Step, command: Command, result: RunResult) {

0 commit comments

Comments
 (0)