Skip to content

Commit

Permalink
rabbitmq 4.0.1
Browse files Browse the repository at this point in the history
Co-authored-by: Carlo Cabrera <[email protected]>
  • Loading branch information
BrewTestBot and carlocab committed Sep 19, 2024
1 parent 86b2565 commit 794993e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Formula/r/rabbitmq.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Rabbitmq < Formula
desc "Messaging and streaming broker"
homepage "https://www.rabbitmq.com"
url "https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.13.7/rabbitmq-server-generic-unix-3.13.7.tar.xz"
sha256 "45e5423c43f15c9d2b6ee5947f8e4f256fcfa0c1e7743e60c473cd006954e1fa"
url "https://github.com/rabbitmq/rabbitmq-server/releases/download/v4.0.1/rabbitmq-server-generic-unix-4.0.1.tar.xz"
sha256 "5614c6f47d62dbe920843e915dc1d66cdd0097ec27617bbe05c1c3b588098485"
license "MPL-2.0"

livecheck do
Expand Down Expand Up @@ -50,7 +50,12 @@ def install
"rabbitmq_mqtt,rabbitmq_stream]."
end

sbin.install prefix/"plugins/rabbitmq_management-#{version}/priv/www/cli/rabbitmqadmin"
rabbitmqadmin = prefix.glob("plugins/rabbitmq_management-*/priv/www/cli/rabbitmqadmin")
if (rabbitmqadmin_count = rabbitmqadmin.count) > 1
odie "Expected only one `rabbitmqadmin`, got #{rabbitmqadmin_count}"
end

sbin.install rabbitmqadmin
(sbin/"rabbitmqadmin").chmod 0755
generate_completions_from_executable(sbin/"rabbitmqadmin", "--bash-completion", shells: [:bash],
base_name: "rabbitmqadmin", shell_parameter_format: :none)
Expand Down

0 comments on commit 794993e

Please sign in to comment.