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

Commit d8fa7c9

Browse files
feat(jetbrains-gateway): add rider support (#186)
1 parent c3d1b41 commit d8fa7c9

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

jetbrains-gateway/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module "jetbrains_gateway" {
1818
agent_id = coder_agent.example.id
1919
agent_name = "example"
2020
folder = "/home/coder/example"
21-
jetbrains_ides = ["GO", "WS", "IU", "PY", "PS", "CL", "RM"]
21+
jetbrains_ides = ["GO", "WS", "IU", "PY", "PS", "CL", "RM", "RD"]
2222
default = "PY"
2323
}
2424
```
@@ -52,3 +52,4 @@ This module and JetBrains Gateway support the following JetBrains IDEs:
5252
- PhpStorm (`PS`)
5353
- CLion (`CL`)
5454
- RubyMine (`RM`)
55+
- Rider (`RD`)

jetbrains-gateway/main.tf

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,28 +75,32 @@ variable "jetbrains_ide_versions" {
7575
build_number = "232.10203.15"
7676
version = "2023.2.4"
7777
}
78+
"RD" = {
79+
build_number = "232.10300.49"
80+
version = "2023.2.4"
81+
}
7882
}
7983
validation {
8084
condition = (
8185
alltrue([
82-
for code in keys(var.jetbrains_ide_versions) : contains(["IU", "PS", "WS", "PY", "CL", "GO", "RM"], code)
86+
for code in keys(var.jetbrains_ide_versions) : contains(["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD"], code)
8387
])
8488
)
85-
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"])}."
89+
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"])}."
8690
}
8791
}
8892

8993
variable "jetbrains_ides" {
9094
type = list(string)
9195
description = "The list of IDE product codes."
92-
default = ["IU", "PS", "WS", "PY", "CL", "GO", "RM"]
96+
default = ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD"]
9397
validation {
9498
condition = (
9599
alltrue([
96-
for code in var.jetbrains_ides : contains(["IU", "PS", "WS", "PY", "CL", "GO", "RM"], code)
100+
for code in var.jetbrains_ides : contains(["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD"], code)
97101
])
98102
)
99-
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"])}."
103+
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"])}."
100104
}
101105
# check if the list is empty
102106
validation {
@@ -161,6 +165,13 @@ locals {
161165
build_number = var.jetbrains_ide_versions["RM"].build_number,
162166
download_link = "https://download.jetbrains.com/ruby/RubyMine-${var.jetbrains_ide_versions["RM"].version}.tar.gz"
163167
}
168+
"RD" = {
169+
icon = "/icon/rider.svg",
170+
name = "Rider",
171+
identifier = "RD",
172+
build_number = var.jetbrains_ide_versions["RD"].build_number,
173+
download_link = "https://download.jetbrains.com/rider/JetBrains.Rider-${var.jetbrains_ide_versions["RD"].version}.tar.gz"
174+
}
164175
}
165176
}
166177

0 commit comments

Comments
 (0)