Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit e9238f1

Browse files
authored
feat(jetbrains-gateway): add RustRover to JetBrains Gateway module (#382)
1 parent e94f70a commit e9238f1

File tree

2 files changed

+33
-20
lines changed

2 files changed

+33
-20
lines changed

jetbrains-gateway/README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This module adds a JetBrains Gateway Button to open any workspace with a single
1515
module "jetbrains_gateway" {
1616
count = data.coder_workspace.me.start_count
1717
source = "registry.coder.com/modules/jetbrains-gateway/coder"
18-
version = "1.0.25"
18+
version = "1.0.27"
1919
agent_id = coder_agent.example.id
2020
agent_name = "example"
2121
folder = "/home/coder/example"
@@ -34,7 +34,7 @@ module "jetbrains_gateway" {
3434
module "jetbrains_gateway" {
3535
count = data.coder_workspace.me.start_count
3636
source = "registry.coder.com/modules/jetbrains-gateway/coder"
37-
version = "1.0.25"
37+
version = "1.0.27"
3838
agent_id = coder_agent.example.id
3939
agent_name = "example"
4040
folder = "/home/coder/example"
@@ -49,7 +49,7 @@ module "jetbrains_gateway" {
4949
module "jetbrains_gateway" {
5050
count = data.coder_workspace.me.start_count
5151
source = "registry.coder.com/modules/jetbrains-gateway/coder"
52-
version = "1.0.25"
52+
version = "1.0.27"
5353
agent_id = coder_agent.example.id
5454
agent_name = "example"
5555
folder = "/home/coder/example"
@@ -65,7 +65,7 @@ module "jetbrains_gateway" {
6565
module "jetbrains_gateway" {
6666
count = data.coder_workspace.me.start_count
6767
source = "registry.coder.com/modules/jetbrains-gateway/coder"
68-
version = "1.0.25"
68+
version = "1.0.27"
6969
agent_id = coder_agent.example.id
7070
agent_name = "example"
7171
folder = "/home/coder/example"
@@ -91,7 +91,7 @@ module "jetbrains_gateway" {
9191
module "jetbrains_gateway" {
9292
count = data.coder_workspace.me.start_count
9393
source = "registry.coder.com/modules/jetbrains-gateway/coder"
94-
version = "1.0.25"
94+
version = "1.0.27"
9595
agent_id = coder_agent.example.id
9696
agent_name = "example"
9797
folder = "/home/coder/example"
@@ -110,7 +110,7 @@ Due to the highest priority of the `ide_download_link` parameter in the `(jetbra
110110
module "jetbrains_gateway" {
111111
count = data.coder_workspace.me.start_count
112112
source = "registry.coder.com/modules/jetbrains-gateway/coder"
113-
version = "1.0.25"
113+
version = "1.0.27"
114114
agent_id = coder_agent.example.id
115115
agent_name = "example"
116116
folder = "/home/coder/example"
@@ -125,11 +125,12 @@ module "jetbrains_gateway" {
125125

126126
This module and JetBrains Gateway support the following JetBrains IDEs:
127127

128-
- GoLand (`GO`)
129-
- WebStorm (`WS`)
130-
- IntelliJ IDEA Ultimate (`IU`)
131-
- PyCharm Professional (`PY`)
132-
- PhpStorm (`PS`)
133-
- CLion (`CL`)
134-
- RubyMine (`RM`)
135-
- Rider (`RD`)
128+
- [GoLand (`GO`)](https://www.jetbrains.com/go/)
129+
- [WebStorm (`WS`)](https://www.jetbrains.com/webstorm/)
130+
- [IntelliJ IDEA Ultimate (`IU`)](https://www.jetbrains.com/idea/)
131+
- [PyCharm Professional (`PY`)](https://www.jetbrains.com/pycharm/)
132+
- [PhpStorm (`PS`)](https://www.jetbrains.com/phpstorm/)
133+
- [CLion (`CL`)](https://www.jetbrains.com/clion/)
134+
- [RubyMine (`RM`)](https://www.jetbrains.com/ruby/)
135+
- [Rider (`RD`)](https://www.jetbrains.com/rider/)
136+
- [RustRover (`RR`)](https://www.jetbrains.com/rust/)

jetbrains-gateway/main.tf

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,28 +111,32 @@ variable "jetbrains_ide_versions" {
111111
build_number = "243.21565.191"
112112
version = "2024.3"
113113
}
114+
"RR" = {
115+
build_number = "243.22562.230"
116+
version = "2024.3"
117+
}
114118
}
115119
validation {
116120
condition = (
117121
alltrue([
118-
for code in keys(var.jetbrains_ide_versions) : contains(["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD"], code)
122+
for code in keys(var.jetbrains_ide_versions) : contains(["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD", "RR"], code)
119123
])
120124
)
121-
error_message = "The jetbrains_ide_versions must contain a map of valid product codes. Valid product codes are ${join(",", ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD"])}."
125+
error_message = "The jetbrains_ide_versions must contain a map of valid product codes. Valid product codes are ${join(",", ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD", "RR"])}."
122126
}
123127
}
124128

125129
variable "jetbrains_ides" {
126130
type = list(string)
127131
description = "The list of IDE product codes."
128-
default = ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD"]
132+
default = ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD", "RR"]
129133
validation {
130134
condition = (
131135
alltrue([
132-
for code in var.jetbrains_ides : contains(["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD"], code)
136+
for code in var.jetbrains_ides : contains(["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD", "RR"], code)
133137
])
134138
)
135-
error_message = "The jetbrains_ides must be a list of valid product codes. Valid product codes are ${join(",", ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD"])}."
139+
error_message = "The jetbrains_ides must be a list of valid product codes. Valid product codes are ${join(",", ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD", "RR"])}."
136140
}
137141
# check if the list is empty
138142
validation {
@@ -228,14 +232,22 @@ locals {
228232
build_number = var.jetbrains_ide_versions["RM"].build_number,
229233
download_link = "${var.download_base_link}/ruby/RubyMine-${var.jetbrains_ide_versions["RM"].version}.tar.gz"
230234
version = var.jetbrains_ide_versions["RM"].version
231-
}
235+
},
232236
"RD" = {
233237
icon = "/icon/rider.svg",
234238
name = "Rider",
235239
identifier = "RD",
236240
build_number = var.jetbrains_ide_versions["RD"].build_number,
237241
download_link = "${var.download_base_link}/rider/JetBrains.Rider-${var.jetbrains_ide_versions["RD"].version}.tar.gz"
238242
version = var.jetbrains_ide_versions["RD"].version
243+
},
244+
"RR" = {
245+
icon = "/icon/rustrover.svg",
246+
name = "RustRover",
247+
identifier = "RR",
248+
build_number = var.jetbrains_ide_versions["RR"].build_number,
249+
download_link = "${var.download_base_link}/rustrover/RustRover-${var.jetbrains_ide_versions["RR"].version}.tar.gz"
250+
version = var.jetbrains_ide_versions["RR"].version
239251
}
240252
}
241253

0 commit comments

Comments
 (0)