nzbget: fix RuboCop Style/TrailingBodyOnMethodDefinition.

master
Mike McQuaid 2020-03-14 19:45:29 +00:00
parent 291e112989
commit 49e45b4588
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
1 changed files with 22 additions and 21 deletions

View File

@ -48,27 +48,28 @@ class Nzbget < Formula
plist_options :manual => "nzbget"
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>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/nzbget</string>
<string>-s</string>
<string>-o</string>
<string>OutputMode=Log</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
EOS
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>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/nzbget</string>
<string>-s</string>
<string>-o</string>
<string>OutputMode=Log</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
EOS
end
test do