Skip to content

Commit 4004fb4

Browse files
authored
Merge pull request #144 from software-engineering-project-org/renameStages
#refactor Full rename of STAGES to Deployment-Variants XX
2 parents 542ec93 + 18d05d9 commit 4004fb4

16 files changed

+187
-171
lines changed

README.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
## LAD: Leda App Deployer – an Eclipse Leda Extension for Visual Studio Code
44

55

6-
LAD facilitates the installation of an Eclipse Velocitas App on a target device running Eclipse Leda (with Kanto). With LAD, three different deployment options called "STAGES" are selectable, to save time during Vehicle App development.
6+
LAD facilitates the installation of an Eclipse Velocitas App on a target device running Eclipse Leda (with Kanto). With LAD, three different deployment options called "Deployment-Variants" are selectable, to save time during Vehicle App development.
77

8-
9-
**Important NOTE:** The base requirement is to have one (or many) target device(s) which can be accessed from this source device via SSH. Each STAGE requires configurations on the source and/or the target system, which is described in the prerequisites of each STAGE. The plugin expects that Leda is running as Operating System on the target device. If you wish to use the plugin for deployment on a different operating system and not use Leda, refer to "Prerequisites for Plugin Usage on different Operating Systems (without Leda)"
8+
**Important NOTE:** The base requirement is to have one (or many) target device(s) which can be accessed from this source device via SSH. Each Deployment-Variant requires configurations on the source and/or the target system, which is described in the prerequisites of each Deployment-Variant. If you with to use the plugin for deployment on a different operating system and not use Leda, refer to "Prerequisites for Plugin Usage on different Operating Systems (without Leda)"
109

1110
## Install the Extension in Visual Studio Code
1211
LAD is not published on the official Marketplace of Visual Studio Code by now. You need to manually install the Extension in Visual Studio Code by following these simple steps:
@@ -29,13 +28,13 @@ If code is not present, do the following to install it:
2928
3029
After successful installation, LAD is now visible in Visual Studio Code as an Extension button that looks like a target ◎.
3130
32-
## Three different Ways (called "STAGES") to deploy your Application
31+
## Three different Ways (called "Deployment-Variants") to deploy your Application
3332
34-
### STAGE 1: The Remote Build
33+
### Deployment-Variant 01: The Remote Build
3534
3635
**Description:**
3736
38-
Use this STAGE to install Velocitas App images on a target device from a remote source. Images refer to the available images in the GitHub repositories' registry (ghcr) your application is pulled from. The target system automatically downloads the specified image from the remote GitHub Repository with the help of LAD. You can choose between the different image releases available for your Repository via dropdown.
37+
Use this Deployment-Variant to install Velocitas App images on a target device from a remote source. Images refer to the available images in the GitHub repositories' registry (ghcr) your application is pulled from. The target system automatically downloads the specified image from the remote GitHub Repository with the help of LAD. You can choose between the different image releases available for your Repository via dropdown.
3938
4039
**Prerequisites:**
4140
@@ -46,7 +45,7 @@ Use this STAGE to install Velocitas App images on a target device from a remote
4645
4746
**The process:**
4847
49-
![Stage 1](https://github.com/software-engineering-project-org/vscode-plugin-automotive-app-deployment/blob/main/resources/stage_1.png)
48+
![Deployment-Variant 01](https://github.com/software-engineering-project-org/vscode-plugin-automotive-app-deployment/blob/main/resources/deployment-variant_1.png)
5049
5150
5251
**Detailed steps the Extension performs for you:**
@@ -60,13 +59,13 @@ Use this STAGE to install Velocitas App images on a target device from a remote
6059
6160
6261
63-
### STAGE 2: The Hybrid Build
62+
### Deployment-Variant 02: The Hybrid Build
6463
6564
6665
6766
**Description:**
6867
69-
Use this STAGE to first download the Velocitas App image from the web (or specify a local path to a .tar file) and then transfer it to the target system via a local network. The target system does not require an Internet connection. If a local path is specified, the source device does not require an internet connection as well.
68+
Use this Deployment-Variant to first download the Velocitas App image from the web (or specify a local path to a .tar file) and then transfer it to the target system via a local network. The target system does not require an Internet connection. If a local path is specified, the source device does not require an internet connection as well.
7069
7170
**Prerequisites:**
7271
@@ -76,7 +75,7 @@ Use this STAGE to first download the Velocitas App image from the web (or specif
7675
7776
**The process:**
7877
79-
![Stage 2](https://github.com/software-engineering-project-org/vscode-plugin-automotive-app-deployment/blob/main/resources/stage_2.png)
78+
![Deployment-Variant 02](https://github.com/software-engineering-project-org/vscode-plugin-automotive-app-deployment/blob/main/resources/deployment-variant_2.png)
8079
8180
8281
@@ -94,13 +93,13 @@ Use this STAGE to first download the Velocitas App image from the web (or specif
9493
9594
9695
97-
### STAGE 3: The Local Build
96+
### Deployment-Variant 03: The Local Build
9897
9998
10099
101100
**Description:**
102101
103-
Use this STAGE to build the Velocitas App image locally via Docker build. The deployment is completely done on a local network, so no internet connection is required, neither on the source device nor on the target device.
102+
Use this Deployment-Variant to build the Velocitas App image locally via Docker build. The deployment is completely done on a local network, so no internet connection is required, neither on the source device nor on the target device.
104103
105104
106105
@@ -114,7 +113,7 @@ Use this STAGE to build the Velocitas App image locally via Docker build. The de
114113
115114
**The process:**
116115
117-
![Stage 3](https://github.com/software-engineering-project-org/vscode-plugin-automotive-app-deployment/blob/main/resources/stage_3.png)
116+
![Deployment-Variant 03](https://github.com/software-engineering-project-org/vscode-plugin-automotive-app-deployment/blob/main/resources/deployment-variant_3.png)
118117
119118
120119
@@ -154,11 +153,11 @@ Use this STAGE to build the Velocitas App image locally via Docker build. The de
154153
- **Deploy apps on devices using LAD:**
155154
156155
- To deploy a Velocitas App with LAD, you can choose between the three variants described above:
157-
- The cloud icon without an arrow executes STAGE 1 option
156+
- The cloud icon without an arrow executes Deployment-Variant 01 option
158157
"Deploy remote built image remote".
159-
- The cloud with the arrow executes STAGE 2 option
158+
- The cloud with the arrow executes Deployment-Variant 02 option
160159
"Deploy local built image remote".
161-
- The document icon with the arrow executes STAGE 3 option
160+
- The document icon with the arrow executes Deployment-Variant 03 option
162161
"Deploy local built image local".
163162
164163
### Add the local registry on the target device

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@
7171
"group": "inline"
7272
},
7373
{
74-
"command": "automotive-app-deployment.deployStageOne",
74+
"command": "automotive-app-deployment.deployVariant01",
7575
"when": "view == devices",
7676
"group": "inline"
7777
},
7878
{
79-
"command": "automotive-app-deployment.deployStageTwo",
79+
"command": "automotive-app-deployment.deployVariant02",
8080
"when": "view == devices",
8181
"group": "inline"
8282
},
8383
{
84-
"command": "automotive-app-deployment.deployStageThree",
84+
"command": "automotive-app-deployment.deployVariant03",
8585
"when": "view == devices",
8686
"group": "inline"
8787
}
@@ -165,18 +165,18 @@
165165
"icon": "$(info)"
166166
},
167167
{
168-
"command": "automotive-app-deployment.deployStageOne",
169-
"title": "LAD: Deploy Stage 01",
168+
"command": "automotive-app-deployment.deployVariant01",
169+
"title": "LAD: Deploy Variant 01",
170170
"icon": "$(cloud)"
171171
},
172172
{
173-
"command": "automotive-app-deployment.deployStageTwo",
174-
"title": "LAD: Deploy Stage 02",
173+
"command": "automotive-app-deployment.deployVariant02",
174+
"title": "LAD: Deploy Variant 02",
175175
"icon": "$(cloud-download)"
176176
},
177177
{
178-
"command": "automotive-app-deployment.deployStageThree",
179-
"title": "LAD: Deploy Stage 03",
178+
"command": "automotive-app-deployment.deployVariant03",
179+
"title": "LAD: Deploy Variant 03",
180180
"icon": "$(file-symlink-file)"
181181
},
182182
{
File renamed without changes.
File renamed without changes.
File renamed without changes.

resources/userManual.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@
99
<h1>Welcome to the User Manual for LAD: Leda App Deployer</h1>
1010
<p>
1111
LAD facilitates the installation of an Eclipse Velocitas App on a target device running Eclipse Leda (with Kanto).
12-
With LAD, three different deployment options called "STAGES" are selectable.
12+
With LAD, three different deployment options called "Deployment-Variants" are selectable.
1313

1414
<p><strong>NOTE:</strong> The base requirement is to have one (or many) target device(s) which can be accessed from this source device via SSH.
15-
<br>Each STAGE requires configurations on the source and/or the target system, which is described in the prerequisites of each STAGE.</p>
15+
<br>Each Deployment-Variant requires configurations on the source and/or the target system, which is described in the prerequisites of each Deployment-Variant.</p>
1616
</p>
1717
<br>
1818

19-
<h2>Three different Ways (called "STAGES") to deploy your Application </h2>
19+
<h2>Three different Ways (called "Deployment-Variants") to deploy your Application </h2>
2020

21-
<h3>STAGE 1: The Remote Build</h3>
21+
<h3>Deployment-Variant 01: The Remote Build</h3>
2222
<div style="margin-left: 40px">
2323

2424
<p><strong>Description:</strong></p>
2525
<p>
26-
Use this STAGE to install Velocitas App images on target device from a remote source. Images refer to the available images in the GitHub repositories' registry (ghcr) your application is pulled from.
26+
Use this Deployment-Variant to install Velocitas App images on target device from a remote source. Images refer to the available images in the GitHub repositories' registry (ghcr) your application is pulled from.
2727
<br>The target system automatically downloads the specified image from the remote GitHub Repository with the help of LAD. You can choose between the different image releases which are available for your Repository via dropdown.
2828
</p>
2929

@@ -34,7 +34,7 @@ <h3>STAGE 1: The Remote Build</h3>
3434
</ul>
3535

3636
<p><strong>The process:</strong></p>
37-
<img src="${stage_1}" width="500" />
37+
<img src="${deployment-variant_1}" width="500" />
3838

3939
<p><strong>Detailed steps the extension performs for you: </strong></p>
4040
<ol>
@@ -48,12 +48,12 @@ <h3>STAGE 1: The Remote Build</h3>
4848
</br>
4949
</div>
5050

51-
<h3>STAGE 2: The Hybrid Build</h3>
51+
<h3>Deployment-Variant 02: The Hybrid Build</h3>
5252
<div style="margin-left: 40px">
5353

5454
<p><strong>Description:</strong></p>
5555
<p>
56-
Use this STAGE to first download the Velocitas App image from the web (or specify a local path to .tar file) and then transfers it to the target system via local network.
56+
Use this Deployment-Variant to first download the Velocitas App image from the web (or specify a local path to .tar file) and then transfers it to the target system via local network.
5757
<br>The target system does not require an Internet connection. If a local path is specified, source device does not require an internet connection as well.
5858
</p>
5959
<p><strong>Prerequisites:</strong></p>
@@ -62,7 +62,7 @@ <h3>STAGE 2: The Hybrid Build</h3>
6262
</ul>
6363

6464
<p><strong>The process:</strong> </p>
65-
<img src="${stage_2}" width="500" />
65+
<img src="${deployment-variant_2}" width="500" />
6666

6767
<p><strong>Detailed steps the extension performs for you: </strong></p>
6868
<ol>
@@ -77,12 +77,12 @@ <h3>STAGE 2: The Hybrid Build</h3>
7777
</br>
7878
</div>
7979

80-
<h3>STAGE 3: The local build</h3>
80+
<h3>Deployment-Variant 03: The local build</h3>
8181
<div style="margin-left: 40px">
8282

8383
<p><strong>Description:</strong></p>
8484
<p>
85-
Use this STAGE to build the Velocitas App image locally via Docker build.
85+
Use this Deployment-Variant to build the Velocitas App image locally via Docker build.
8686
<br>The deployment is completely done in local network, so no internet connection is required, neither on the source device, nor on the target device.
8787
</p>
8888

@@ -93,7 +93,7 @@ <h3>STAGE 3: The local build</h3>
9393
<li>Local registry on target device: Allow the use beforehand by referring to section "Add the local registry on the target device".</li>
9494
</ul>
9595
<p><strong>The process:</strong> </p>
96-
<img src="${stage_3}" width="500" />
96+
<img src="${deployment-variant_3}" width="500" />
9797
<p><strong>Detailed steps the extension performs for you: </strong></p>
9898
<ol>
9999
<li>Builds Docker Image (checks included)</li>
@@ -133,9 +133,9 @@ <h3>Add, remove & edit target devices; run apps on device</h3>
133133
<br> To deploy a Velocitas App with LAD, you can choose between the three variants described above:
134134
<br>
135135
<ul>
136-
<li>The cloud icon without arrow executes STAGE 1 option - "Deploy remote built image remote". </li>
137-
<li>The cloud with the arrow executes STAGE 2 option - "Deploy local built image remote". </li>
138-
<li>The document icon with the arrow executes STAGE 3 option "Deploy local built image local"</li>
136+
<li>The cloud icon without arrow executes Deployment-Variant 01 option - "Deploy remote built image remote". </li>
137+
<li>The cloud with the arrow executes Deployment-Variant 02 option - "Deploy local built image remote". </li>
138+
<li>The document icon with the arrow executes Deployment-Variant 03 option "Deploy local built image local"</li>
139139
</ul>
140140
</p>
141141
</br>

src/LedaAppDeployer.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
import * as vscode from 'vscode';
1818
import { LedaDeviceTreeItem, DeviceDataProvider } from './provider/DeviceDataProvider';
1919
import { addDevice, deleteDevice } from './cmd/DeviceCommands';
20-
import { StageOne } from './cmd/StageOne';
21-
import { StageTwo } from './cmd/StageTwo';
22-
import { StageThree } from './cmd/StageThree';
20+
import { DeploymentVariant01 } from './cmd/DeploymentVariant01';
21+
import { DeploymentVariant02 } from './cmd/DeploymentVariant02';
22+
import { DeploymentVariant03 } from './cmd/DeploymentVariant03';
2323
import { Credentials } from './svc/Credentials';
2424
import { openUserManual } from './utils/openUserManual';
2525

@@ -99,25 +99,25 @@ export default class LedaAppDeployer {
9999
}),
100100
);
101101

102-
// Register the 'deployStageOne' command and associate it with the 'StageOne.deploy' function
102+
// Register the 'deployWithDeploymentVariant01' command and associate it with the 'DeploymentVariant01.deployWith' function
103103
this.context.subscriptions.push(
104-
vscode.commands.registerCommand('automotive-app-deployment.deployStageOne', async (item: LedaDeviceTreeItem) => {
104+
vscode.commands.registerCommand('automotive-app-deployment.deployVariant01', async (item: LedaDeviceTreeItem) => {
105105
const octokit = await this.credentials.getOctokit();
106-
await StageOne.deploy(item, octokit);
106+
await DeploymentVariant01.deployWith(item, octokit);
107107
}),
108108
);
109109

110-
// Register the 'deployStageTwo' command and associate it with the 'StageTwo.deploy' function
110+
// Register the 'deployWithDeploymentVariant02' command and associate it with the 'DeploymentVariant02.deployWith' function
111111
this.context.subscriptions.push(
112-
vscode.commands.registerCommand('automotive-app-deployment.deployStageTwo', async (item: LedaDeviceTreeItem) => {
113-
await StageTwo.deploy(item);
112+
vscode.commands.registerCommand('automotive-app-deployment.deployVariant02', async (item: LedaDeviceTreeItem) => {
113+
await DeploymentVariant02.deployWith(item);
114114
}),
115115
);
116116

117-
// Register the 'deployStageThree' command and associate it with the 'StageThree.deploy' function
117+
// Register the 'deployWithDeploymentVariant03' command and associate it with the 'DeploymentVariant03.deployWith' function
118118
this.context.subscriptions.push(
119-
vscode.commands.registerCommand('automotive-app-deployment.deployStageThree', async (item: LedaDeviceTreeItem) => {
120-
await StageThree.deploy(item);
119+
vscode.commands.registerCommand('automotive-app-deployment.deployVariant03', async (item: LedaDeviceTreeItem) => {
120+
await DeploymentVariant03.deployWith(item);
121121
}),
122122
);
123123
}

0 commit comments

Comments
 (0)