mosquitto: fix RuboCop Style/TrailingBodyOnMethodDefinition.
parent
3a97aabce3
commit
92730e9ada
|
@ -26,37 +26,39 @@ class Mosquitto < Formula
|
|||
(var/"mosquitto").mkpath
|
||||
end
|
||||
|
||||
def caveats; <<~EOS
|
||||
mosquitto has been installed with a default configuration file.
|
||||
You can make changes to the configuration by editing:
|
||||
#{etc}/mosquitto/mosquitto.conf
|
||||
EOS
|
||||
def caveats
|
||||
<<~EOS
|
||||
mosquitto has been installed with a default configuration file.
|
||||
You can make changes to the configuration by editing:
|
||||
#{etc}/mosquitto/mosquitto.conf
|
||||
EOS
|
||||
end
|
||||
|
||||
plist_options :manual => "mosquitto -c #{HOMEBREW_PREFIX}/etc/mosquitto/mosquitto.conf"
|
||||
|
||||
def plist; <<~EOS
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>#{plist_name}</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>#{opt_sbin}/mosquitto</string>
|
||||
<string>-c</string>
|
||||
<string>#{etc}/mosquitto/mosquitto.conf</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>KeepAlive</key>
|
||||
<false/>
|
||||
<key>WorkingDirectory</key>
|
||||
<string>#{var}/mosquitto</string>
|
||||
</dict>
|
||||
</plist>
|
||||
EOS
|
||||
def plist
|
||||
<<~EOS
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>#{plist_name}</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>#{opt_sbin}/mosquitto</string>
|
||||
<string>-c</string>
|
||||
<string>#{etc}/mosquitto/mosquitto.conf</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>KeepAlive</key>
|
||||
<false/>
|
||||
<key>WorkingDirectory</key>
|
||||
<string>#{var}/mosquitto</string>
|
||||
</dict>
|
||||
</plist>
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in New Issue