Skip to content

Commit

Permalink
Add sudo_rabbitmqctl alias for Gradle
Browse files Browse the repository at this point in the history
(cherry picked from commit 4610011)
  • Loading branch information
acogoluegnes committed Dec 8, 2020
1 parent 2ef32a1 commit f4ca842
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/java/reactor/rabbitmq/Host.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ public static String rabbitmqctlCommand() {
if (rabbitmqCtl.startsWith("DOCKER:")) {
String containerId = rabbitmqCtl.split(":")[1];
return "docker exec " + containerId + " rabbitmqctl";
} else if ("sudo_rabbitmqctl".equals(rabbitmqCtl)) {
return "sudo rabbitmqctl";
} else {
return rabbitmqCtl;
return rabbitmqCtl;
}
}

Expand Down

0 comments on commit f4ca842

Please sign in to comment.