znapzend: fix RuboCop Style/TrailingBodyOnMethodDefinition.

master
Mike McQuaid 2020-03-14 19:46:09 +00:00
parent 336d326980
commit c56b224cb8
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
1 changed files with 33 additions and 32 deletions

View File

@ -29,40 +29,41 @@ class Znapzend < Formula
plist_options :startup => true, :manual => "sudo znapzend --daemonize" plist_options :startup => true, :manual => "sudo znapzend --daemonize"
def plist; <<~EOS def plist
<?xml version="1.0" encoding="UTF-8"?> <<~EOS
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" <?xml version="1.0" encoding="UTF-8"?>
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
<plist version="1.0"> "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<dict> <plist version="1.0">
<key>EnvironmentVariables</key>
<dict> <dict>
<key>PATH</key> <key>EnvironmentVariables</key>
<string>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:#{HOMEBREW_PREFIX}/bin</string> <dict>
<key>PATH</key>
<string>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:#{HOMEBREW_PREFIX}/bin</string>
</dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/znapzend</string>
<string>--connectTimeout=120</string>
<string>--logto=#{var}/log/znapzend/znapzend.log</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>#{var}/log/znapzend/znapzend.err.log</string>
<key>StandardOutPath</key>
<string>#{var}/log/znapzend/znapzend.out.log</string>
<key>ThrottleInterval</key>
<integer>30</integer>
<key>WorkingDirectory</key>
<string>#{var}/run/znapzend</string>
</dict> </dict>
<key>KeepAlive</key> </plist>
<true/> EOS
<key>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/znapzend</string>
<string>--connectTimeout=120</string>
<string>--logto=#{var}/log/znapzend/znapzend.log</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>#{var}/log/znapzend/znapzend.err.log</string>
<key>StandardOutPath</key>
<string>#{var}/log/znapzend/znapzend.out.log</string>
<key>ThrottleInterval</key>
<integer>30</integer>
<key>WorkingDirectory</key>
<string>#{var}/run/znapzend</string>
</dict>
</plist>
EOS
end end
test do test do