questdb: fix RuboCop Style/TrailingBodyOnMethodDefinition.

master
Mike McQuaid 2020-03-14 19:45:45 +00:00
parent 684e467a46
commit b0fcaada20
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
1 changed files with 35 additions and 34 deletions

View File

@ -18,42 +18,43 @@ class Questdb < Formula
plist_options :manual => "questdb start"
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>KeepAlive</key>
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>SuccessfulExit</key>
<false/>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/questdb</string>
<string>start</string>
<string>-d</string>
<string>var/"questdb"</string>
<string>-n</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>#{var}/questdb</string>
<key>StandardErrorPath</key>
<string>#{var}/log/questdb.log</string>
<key>StandardOutPath</key>
<string>#{var}/log/questdb.log</string>
<key>SoftResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
<integer>1024</integer>
</dict>
</dict>
<key>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/questdb</string>
<string>start</string>
<string>-d</string>
<string>var/"questdb"</string>
<string>-n</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>#{var}/questdb</string>
<key>StandardErrorPath</key>
<string>#{var}/log/questdb.log</string>
<key>StandardOutPath</key>
<string>#{var}/log/questdb.log</string>
<key>SoftResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
<integer>1024</integer>
</dict>
</dict>
</plist>
EOS
</plist>
EOS
end
test do