diff --git a/Formula/rabbitmq.rb b/Formula/rabbitmq.rb index c34d1b6ef04..10bb47de658 100644 --- a/Formula/rabbitmq.rb +++ b/Formula/rabbitmq.rb @@ -53,49 +53,52 @@ class Rabbitmq < Formula (bash_completion/"rabbitmqadmin.bash").write Utils.popen_read("#{sbin}/rabbitmqadmin --bash-completion") end - def caveats; <<~EOS - Management Plugin enabled by default at http://localhost:15672 - EOS + def caveats + <<~EOS + Management Plugin enabled by default at http://localhost:15672 + EOS end - def rabbitmq_env; <<~EOS - CONFIG_FILE=#{etc}/rabbitmq/rabbitmq - NODE_IP_ADDRESS=127.0.0.1 - NODENAME=rabbit@localhost - RABBITMQ_LOG_BASE=#{var}/log/rabbitmq - EOS + def rabbitmq_env + <<~EOS + CONFIG_FILE=#{etc}/rabbitmq/rabbitmq + NODE_IP_ADDRESS=127.0.0.1 + NODENAME=rabbit@localhost + RABBITMQ_LOG_BASE=#{var}/log/rabbitmq + EOS end plist_options :manual => "rabbitmq-server" - def plist; <<~EOS - - - - - Label - #{plist_name} - Program - #{opt_sbin}/rabbitmq-server - RunAtLoad - - EnvironmentVariables + def plist + <<~EOS + + + - - PATH - #{HOMEBREW_PREFIX}/sbin:/usr/sbin:/usr/bin:/bin:#{HOMEBREW_PREFIX}/bin - - CONF_ENV_FILE - #{etc}/rabbitmq/rabbitmq-env.conf + Label + #{plist_name} + Program + #{opt_sbin}/rabbitmq-server + RunAtLoad + + EnvironmentVariables + + + PATH + #{HOMEBREW_PREFIX}/sbin:/usr/sbin:/usr/bin:/bin:#{HOMEBREW_PREFIX}/bin + + CONF_ENV_FILE + #{etc}/rabbitmq/rabbitmq-env.conf + + StandardErrorPath + #{var}/log/rabbitmq/std_error.log + StandardOutPath + #{var}/log/rabbitmq/std_out.log - StandardErrorPath - #{var}/log/rabbitmq/std_error.log - StandardOutPath - #{var}/log/rabbitmq/std_out.log - - - EOS + + EOS end test do