redis@4.0: fix RuboCop Style/TrailingBodyOnMethodDefinition.

master
Mike McQuaid 2020-03-14 19:45:46 +00:00
parent eea49bb26a
commit 01a0ce0d63
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
1 changed files with 28 additions and 27 deletions

View File

@ -35,35 +35,36 @@ class RedisAT40 < Formula
plist_options :manual => "#{HOMEBREW_PREFIX}/opt/redis@4.0/bin/redis-server #{HOMEBREW_PREFIX}/etc/redis.conf" plist_options :manual => "#{HOMEBREW_PREFIX}/opt/redis@4.0/bin/redis-server #{HOMEBREW_PREFIX}/etc/redis.conf"
def plist; <<~EOS def plist
<?xml version="1.0" encoding="UTF-8"?> <<~EOS
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<dict> <plist version="1.0">
<key>KeepAlive</key>
<dict> <dict>
<key>SuccessfulExit</key> <key>KeepAlive</key>
<false/> <dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/redis-server</string>
<string>#{etc}/redis.conf</string>
<string>--daemonize no</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>#{var}</string>
<key>StandardErrorPath</key>
<string>#{var}/log/redis.log</string>
<key>StandardOutPath</key>
<string>#{var}/log/redis.log</string>
</dict> </dict>
<key>Label</key> </plist>
<string>#{plist_name}</string> EOS
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/redis-server</string>
<string>#{etc}/redis.conf</string>
<string>--daemonize no</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>#{var}</string>
<key>StandardErrorPath</key>
<string>#{var}/log/redis.log</string>
<key>StandardOutPath</key>
<string>#{var}/log/redis.log</string>
</dict>
</plist>
EOS
end end
test do test do