olsrd: fix RuboCop Style/TrailingBodyOnMethodDefinition.

master
Mike McQuaid 2020-03-14 19:45:30 +00:00
parent b4783dd0b6
commit 7a16204aa0
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
1 changed files with 20 additions and 19 deletions

View File

@ -29,27 +29,28 @@ class Olsrd < Formula
plist_options :startup => true, :manual => "olsrd -f #{HOMEBREW_PREFIX}/etc/olsrd.conf"
def startup_plist; <<~EOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//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>#{HOMEBREW_PREFIX}/sbin/olsrd</string>
<string>-f</string>
<string>#{etc}/olsrd.conf</string>
</array>
<key>KeepAlive</key>
def startup_plist
<<~EOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NetworkState</key>
<true/>
<key>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{HOMEBREW_PREFIX}/sbin/olsrd</string>
<string>-f</string>
<string>#{etc}/olsrd.conf</string>
</array>
<key>KeepAlive</key>
<dict>
<key>NetworkState</key>
<true/>
</dict>
</dict>
</dict>
</plist>
EOS
</plist>
EOS
end
test do