Skip to content

Commit 1eb9cc7

Browse files
committed
Merge branch 'edge' of github.com:lando/core into edge
2 parents 8904581 + 4bfdf7d commit 1eb9cc7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+576
-686
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ coverage/
3737

3838
# lando
3939
.lando/id
40+
plugins/*
41+
!plugins/test
42+
!plugins/.gitkeep
4043

4144
# docs
4245
.temp

app.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ module.exports = async (app, lando) => {
9292
// load in and parse v4 services
9393
app.events.on('pre-init', async () => await require('./hooks/app-add-v4-services')(app, lando));
9494

95+
// initialize proxy stuff
96+
app.events.on('pre-init', async () => await require('./hooks/app-init-proxy')(app, lando));
97+
9598
// add in hostname
9699
app.events.on('post-init', 1, async () => await require('./hooks/app-add-hostnames')(app, lando));
97100

@@ -116,6 +119,9 @@ module.exports = async (app, lando) => {
116119
// Add tooling if applicable
117120
app.events.on('post-init', async () => await require('./hooks/app-add-tooling')(app, lando));
118121

122+
// add proxy info as needed
123+
app.events.on('post-init', async () => await require('./hooks/app-add-proxy-info')(app, lando));
124+
119125
// Collect info so we can inject LANDO_INFO
120126
// @NOTE: this is not currently the full lando info because a lot of it requires the app to be on
121127
app.events.on('post-init', 10, async () => await require('./hooks/app-set-lando-info')(app, lando));
@@ -160,6 +166,9 @@ module.exports = async (app, lando) => {
160166
// i really wish thre was a better way to do this but alas i do not think there is
161167
app.events.on('pre-rebuild', 10, async () => await require('./hooks/app-shuffle-locals')(app, lando));
162168

169+
// start up proxy
170+
app.events.on('pre-start', 1, async () => await require('./hooks/app-start-proxy')(app, lando));
171+
163172
// Check for updates if the update cache is empty
164173
app.events.on('pre-start', 1, async () => await require('./hooks/app-check-for-updates')(app, lando));
165174

@@ -184,6 +193,9 @@ module.exports = async (app, lando) => {
184193
// Add path info/shellenv tip if needed
185194
app.events.on('post-start', async () => await require('./hooks/app-add-updates-info')(app, lando));
186195

196+
// add proxy info as needed
197+
app.events.on('post-start', async () => await require('./hooks/app-add-proxy-info')(app, lando));
198+
187199
// Add update tip if needed
188200
app.events.on('post-start', async () => await require('./hooks/app-add-path-info')(app, lando));
189201

@@ -199,6 +211,9 @@ module.exports = async (app, lando) => {
199211
// throw service not start errors
200212
app.events.on('post-start', 1, async () => await require('./hooks/app-check-v4-service-running')(app, lando));
201213

214+
// add app url scanning
215+
app.events.on('post-start', 10, async () => await require('./hooks/app-add-url-scans')(app, lando));
216+
202217
// Reset app info on a stop, this helps prevent wrong/duplicate information being reported on a restart
203218
app.events.on('post-stop', async () => require('./utils/get-app-info-defaults')(app));
204219

@@ -238,6 +253,9 @@ module.exports = async (app, lando) => {
238253
app.events.on('post-start', 10, async () => await require('./hooks/app-run-legacy-scanner')(app, lando));
239254
}
240255

256+
// legacy sharing stuff
257+
await require('./hooks/app-load-legacy-sharing')(app, lando);
258+
241259
// REturn defualts
242260
return {
243261
env: {

examples/certs/.lando.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,3 @@ tooling:
8888

8989
plugins:
9090
"@lando/core": "../.."
91-
"@lando/proxy": "../../plugins/proxy"
92-
"@lando/scanner": "../../plugins/scanner"

examples/command/.lando.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,3 @@ services:
8888

8989
plugins:
9090
"@lando/core": "../.."
91-
"@lando/proxy": "../../plugins/proxy"
92-
"@lando/scanner": "../../plugins/scanner"

examples/mounts/.lando.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,3 @@ services:
100100
101101
plugins:
102102
"@lando/core": "../.."
103-
"@lando/proxy": "../../plugins/proxy"
104-
"@lando/scanner": "../../plugins/scanner"

examples/networking/.lando.lamp.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,3 @@ services:
3131

3232
plugins:
3333
"@lando/core": "../../.."
34-
"@lando/proxy": "../../../plugins/proxy"
35-
"@lando/scanner": "../../../plugins/scanner"

examples/networking/.lando.lemp.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,3 @@ services:
4141

4242
plugins:
4343
"@lando/core": "../../.."
44-
"@lando/proxy": "../../../plugins/proxy"
45-
"@lando/scanner": "../../../plugins/scanner"

examples/proxy/.lando.local.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ proxy:
1111

1212
plugins:
1313
"@lando/core": "../.."
14-
"@lando/proxy": "../../plugins/proxy"

examples/proxy/.lando.stripped.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,3 @@ services:
103103

104104
plugins:
105105
"@lando/core": "../.."
106-
"@lando/proxy": "../../plugins/proxy"

0 commit comments

Comments
 (0)