znapzend: fix RuboCop Style/TrailingBodyOnMethodDefinition.
parent
336d326980
commit
c56b224cb8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue