Skip to content

Commit fef76e7

Browse files
marc0derclaude
andcommitted
Add ci parameter to install endpoints
Co-Authored-By: Claude <[email protected]>
1 parent 50e856d commit fef76e7

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

app/controllers/InstallController.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class InstallController @Inject() (
1919

2020
private val betaBaseUrlO = configUrl("service.betaBaseUrl")
2121

22-
def install(beta: Boolean, rcUpdate: Option[Boolean]) = Action.async { _ =>
22+
def install(beta: Boolean, rcUpdate: Option[Boolean], ci: Option[Boolean]) = Action.async { _ =>
2323
appRepo.findApplication().map { maybeApp =>
2424
val response = for {
2525
stableBaseUrl <- stableBaseUrlO
@@ -37,7 +37,8 @@ class InstallController @Inject() (
3737
cliNativeVersion = betaNativeVersion,
3838
baseUrl = betaBaseUrl,
3939
rcUpdate = rcUpdate.getOrElse(true),
40-
beta = true
40+
beta = true,
41+
ci = ci.getOrElse(false)
4142
)
4243
)
4344
} else {
@@ -47,7 +48,8 @@ class InstallController @Inject() (
4748
cliNativeVersion = stableNativeVersion,
4849
baseUrl = stableBaseUrl,
4950
rcUpdate = rcUpdate.getOrElse(true),
50-
beta = false
51+
beta = false,
52+
ci = ci.getOrElse(false)
5153
)
5254
)
5355
}

app/views/install_beta.scala.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@(cliVersion: String, cliNativeVersion: String, baseUrl: String, rcUpdate: Boolean, beta: Boolean)#!/bin/bash
1+
@(cliVersion: String, cliNativeVersion: String, baseUrl: String, rcUpdate: Boolean, beta: Boolean, ci: Boolean)#!/bin/bash
22
@includes.license()
33

44
@includes.statusline("install", cliVersion, cliNativeVersion, baseUrl, beta)

app/views/install_stable.scala.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@(cliVersion: String, cliNativeVersion: String, baseUrl: String, rcUpdate: Boolean, beta: Boolean)#!/bin/bash
1+
@(cliVersion: String, cliNativeVersion: String, baseUrl: String, rcUpdate: Boolean, beta: Boolean, ci: Boolean)#!/bin/bash
22
@includes.license()
33

44
@includes.statusline("install", cliVersion, cliNativeVersion, baseUrl, beta)

conf/routes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# ~~~~
44

55
GET /alive controllers.HealthController.alive
6-
GET /install/beta controllers.InstallController.install(beta: Boolean = true, rcupdate: Option[Boolean])
7-
GET /install/stable controllers.InstallController.install(beta: Boolean = false, rcupdate: Option[Boolean])
6+
GET /install/beta controllers.InstallController.install(beta: Boolean = true, rcupdate: Option[Boolean], ci: Option[Boolean])
7+
GET /install/stable controllers.InstallController.install(beta: Boolean = false, rcupdate: Option[Boolean], ci: Option[Boolean])
88
GET /selfupdate/beta/:platform controllers.SelfUpdateController.selfUpdate(beta: Boolean = true, platform)
99
GET /selfupdate/beta controllers.SelfUpdateController.selfUpdate(beta: Boolean = true, platform = "unknown")
1010
GET /selfupdate/stable/:platform controllers.SelfUpdateController.selfUpdate(beta: Boolean ?= false, platform)

0 commit comments

Comments
 (0)