add docs and RubyMine

pull/14/head
Muhammad Atif Ali 2 years ago
parent cc99487a56
commit 1d75dd0cab

@ -0,0 +1,33 @@
# JetBrains Gateway (jetBrains-gateway) module
This module adds a JetBrains Gateway IDEs to your Coder template.
## How to use this module
To use this module, add the following snippet to your template manifest:
```hcl
module "jetbrains_gatway" {
source = "git::https://github.com/coder/testing-modules.git//jetbrains-gateway"
agent_id = coder_agent.main.id
agent_name = "main"
project_directory = "/home/coder"
gateway_ide_product_code = ["GO","WS"] # A list of JetBrains product codes
}
```
## Supported IDEs
The following JetBrains IDEs are supported:
- GoLand (`GO`)
- WebStorm (`WS`)
- IntelliJ IDEA Ultimate (`IU`)
- IntelliJ IDEA Community (`IC`)
- PyCharm Professional (`PY`)
- PyCharm Community (`PC`)
- PhpStorm (`PS`)
- CLion (`CL`)
- RubyMine (`RM`)
- DataGrip (`DB`)
- Rider (`RD`)

@ -31,7 +31,7 @@ variable "gateway_ide_product_code" {
condition = (
length(var.gateway_ide_product_code) == 1 && var.gateway_ide_product_code[0] == "ALL" ||
alltrue([
for code in var.gateway_ide_product_code : contains(["IU", "IC", "PS", "WS", "PY", "PC", "CL", "GO", "DB", "RD"], code)
for code in var.gateway_ide_product_code : contains(["IU", "IC", "PS", "WS", "PY", "PC", "CL", "GO", "DB", "RD", "RM"], code)
])
)
error_message = "The gateway_ide_product_code must be ['ALL'] or a list of valid product codes. https://plugins.jetbrains.com/docs/marketplace/product-codes.html"
@ -91,6 +91,11 @@ locals {
name = "PhpStorm",
value = jsonencode(["PS", "232.9559.64", "https://download.jetbrains.com/webide/PhpStorm-2023.2.1.tar.gz"])
},
"RM" = {
icon = "/icon/rubymine.svg",
name = "RubyMine",
value = jsonencode(["RM", "232.9921.48", "https://download.jetbrains.com/ruby/RubyMine-2023.2.2.tar.gz"])
}
}
}

Loading…
Cancel
Save