redis@4.0: fix RuboCop Style/TrailingBodyOnMethodDefinition.
parent
eea49bb26a
commit
01a0ce0d63
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue