From 1d75dd0cabd04cd156e82c06239d7c04d47bef51 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 18 Sep 2023 15:48:32 +0300 Subject: [PATCH] add docs and RubyMine --- jetbrains-gateway/README.md | 33 +++++++++++++++++++++++++++++++++ jetbrains-gateway/main.tf | 7 ++++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 jetbrains-gateway/README.md diff --git a/jetbrains-gateway/README.md b/jetbrains-gateway/README.md new file mode 100644 index 0000000..5cf61d2 --- /dev/null +++ b/jetbrains-gateway/README.md @@ -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`) diff --git a/jetbrains-gateway/main.tf b/jetbrains-gateway/main.tf index 6434695..4310da9 100644 --- a/jetbrains-gateway/main.tf +++ b/jetbrains-gateway/main.tf @@ -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"]) + } } }