summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2022-05-08 05:10:49 +0200
committerGeorg Pfuetzenreuter2022-05-08 05:10:49 +0200
commit486d683cd072aa18cc6b68785d47d77bd9ae4bdb (patch)
treedfd7d854be1e8b14795c89c9117e68c9904bd28d /src/main/java/net
parent8b218230027fd5a8c7ed92fdc7d501fd94302149 (diff)
downloadpubsh-web-486d683cd072aa18cc6b68785d47d77bd9ae4bdb.tar.gz
pubsh-web-486d683cd072aa18cc6b68785d47d77bd9ae4bdb.tar.bz2
pubsh-web-486d683cd072aa18cc6b68785d47d77bd9ae4bdb.zip
Move temporary availableOs list
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'src/main/java/net')
-rw-r--r--src/main/java/net/libertacasa/pubsh/web/WebApplication.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/main/java/net/libertacasa/pubsh/web/WebApplication.java b/src/main/java/net/libertacasa/pubsh/web/WebApplication.java
index ed517e4..87c4682 100644
--- a/src/main/java/net/libertacasa/pubsh/web/WebApplication.java
+++ b/src/main/java/net/libertacasa/pubsh/web/WebApplication.java
@@ -35,15 +35,14 @@ public class WebApplication {
static ArrayList<String> availableOs = new ArrayList<String>();
- private void genOsList() {
+ public static void main(String[] args) {
+ SpringApplication.run(WebApplication.class, args);
+
+ //to-do: move this to some config file or database
availableOs.add("archlinux");
availableOs.add("opensuse-leap");
availableOs.add("opensuse-tumbleweed");
- availableOs.add("ubuntu");
- }
-
- public static void main(String[] args) {
- SpringApplication.run(WebApplication.class, args);
+ availableOs.add("ubuntu");
}
@GetMapping("/")
@@ -94,7 +93,6 @@ public class WebApplication {
model.addAttribute("docker_images", images);
model.addAttribute("docker_containers", containers);
- genOsList();
model.addAttribute("availableOs", availableOs);
return("admin");
@@ -141,7 +139,6 @@ public class WebApplication {
model.addAttribute("docker_images", images);
model.addAttribute("docker_containers", containers);
- genOsList();
model.addAttribute("availableOs", availableOs);
return("portal");