From c56b224cb85c6716e9ebb88f4d90debea8096fa8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 14 Mar 2020 19:46:09 +0000 Subject: [PATCH] znapzend: fix RuboCop Style/TrailingBodyOnMethodDefinition. --- Formula/znapzend.rb | 65 +++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/Formula/znapzend.rb b/Formula/znapzend.rb index 58fdb0649fb..26b61169b57 100644 --- a/Formula/znapzend.rb +++ b/Formula/znapzend.rb @@ -29,40 +29,41 @@ class Znapzend < Formula plist_options :startup => true, :manual => "sudo znapzend --daemonize" - def plist; <<~EOS - - - - - EnvironmentVariables + def plist + <<~EOS + + + - PATH - /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:#{HOMEBREW_PREFIX}/bin + EnvironmentVariables + + PATH + /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:#{HOMEBREW_PREFIX}/bin + + KeepAlive + + Label + #{plist_name} + ProgramArguments + + #{opt_bin}/znapzend + --connectTimeout=120 + --logto=#{var}/log/znapzend/znapzend.log + + RunAtLoad + + StandardErrorPath + #{var}/log/znapzend/znapzend.err.log + StandardOutPath + #{var}/log/znapzend/znapzend.out.log + ThrottleInterval + 30 + WorkingDirectory + #{var}/run/znapzend - KeepAlive - - Label - #{plist_name} - ProgramArguments - - #{opt_bin}/znapzend - --connectTimeout=120 - --logto=#{var}/log/znapzend/znapzend.log - - RunAtLoad - - StandardErrorPath - #{var}/log/znapzend/znapzend.err.log - StandardOutPath - #{var}/log/znapzend/znapzend.out.log - ThrottleInterval - 30 - WorkingDirectory - #{var}/run/znapzend - - - EOS + + EOS end test do