diff options
author | Joe Robinson <joe@lc8n.com> | 2015-12-11 00:15:15 +0000 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2015-12-11 00:15:15 +0000 |
commit | 4cca5fdada19f93039ddef9a910a43f09a7634b2 (patch) | |
tree | e25d5b4196f180da2cdee87f23cc508431d95b89 /src | |
parent | 4c06810ef15a522f7131bbc230e5105a2e8a9f8e (diff) |
Debug message
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/uk/co/blatech/blaears/controllers/GitMergeController.java | 2 | ||||
-rw-r--r-- | src/main/java/uk/co/blatech/blaears/controllers/GitPushController.java | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/uk/co/blatech/blaears/controllers/GitMergeController.java b/src/main/java/uk/co/blatech/blaears/controllers/GitMergeController.java index d5cabaf..179caee 100644 --- a/src/main/java/uk/co/blatech/blaears/controllers/GitMergeController.java +++ b/src/main/java/uk/co/blatech/blaears/controllers/GitMergeController.java @@ -19,7 +19,7 @@ import java.io.IOException; public class GitMergeController { @RequestMapping(value = "/git/merge", method = RequestMethod.POST) - String relay(@RequestBody Merge mergeMsg, Model model){ + String merge(@RequestBody Merge mergeMsg, Model model){ try { String action = ""; diff --git a/src/main/java/uk/co/blatech/blaears/controllers/GitPushController.java b/src/main/java/uk/co/blatech/blaears/controllers/GitPushController.java index 2e8020b..b3563cd 100644 --- a/src/main/java/uk/co/blatech/blaears/controllers/GitPushController.java +++ b/src/main/java/uk/co/blatech/blaears/controllers/GitPushController.java @@ -19,7 +19,7 @@ import java.io.IOException; public class GitPushController { @RequestMapping(value = "/git/push", method = RequestMethod.POST) - String relay(@RequestBody Push pushMsg, Model model){ + String push(@RequestBody Push pushMsg, Model model){ try { String commitMsg = ""; for (Commit commit: pushMsg.getCommits()) { @@ -28,6 +28,8 @@ public class GitPushController { } commitMsg += commit.getMessage(); } + Runtime.getRuntime().exec(new String[]{"/bin/bash", "-c", "echo theblueroom beep | bash /home/smsd/msgrelay.bash "}); + //DANGER Runtime.getRuntime().exec(new String[]{"/bin/bash", "-c", "echo theblueroom " + pushMsg.getUserName() + " pushed to " + pushMsg.getRepository().getName() + ": "+ commitMsg + " | bash /home/smsd/msgrelay.bash "}); model.addAttribute("result", "OK"); |