@@ -69,7 +69,6 @@ export class Katacoda extends Runner {
6969
7070 runInstallDevonfwIde ( step : Step , command : Command ) : RunResult {
7171 let cdCommand = this . changeCurrentDir ( "/root" ) ;
72-
7372 let tools = command . parameters [ 0 ] . join ( " " ) . replace ( / v s c o d e / , "" ) . replace ( / e c l i p s e / , "" ) . trim ( ) ;
7473
7574 // create script to download devonfw ide settings
@@ -93,6 +92,26 @@ export class Katacoda extends Runner {
9392 return null ;
9493 }
9594
95+ runRestoreDevonfwIde ( step : Step , command : Command ) : RunResult {
96+ let tools = command . parameters [ 0 ] . join ( " " ) . replace ( / v s c o d e / , "" ) . replace ( / e c l i p s e / , "" ) . trim ( ) ;
97+
98+ // create script to download devonfw ide settings.
99+ this . renderTemplate ( path . join ( "scripts" , "cloneDevonfwIdeSettings.sh" ) , path . join ( this . setupDir , "cloneDevonfwIdeSettings.sh" ) , { tools : tools , cloneDir : "/root/devonfw-settings/" } ) ;
100+ this . renderTemplate ( path . join ( "scripts" , "restoreDevonfwIde.sh" ) , path . join ( this . setupDir , "restoreDevonfwIde.sh" ) , { } ) ;
101+
102+ // add the script to the setup scripts for executing it at the beginning of the tutorial
103+ this . setupScripts . push ( {
104+ "name" : "Clone devonfw IDE settings" ,
105+ "script" : "cloneDevonfwIdeSettings.sh"
106+ } ) ;
107+ this . setupScripts . push ( {
108+ "name" : "Restore Devonfw IDE" ,
109+ "script" : "restoreDevonfwIde.sh"
110+ } ) ;
111+
112+ return null ;
113+ }
114+
96115 runInstallCobiGen ( step : Step , command : Command ) : RunResult {
97116 this . steps . push ( {
98117 "title" : "Install CobiGen" ,
0 commit comments