Cleanup service plist code.
This commit is contained in:
parent
b927ecfd85
commit
1ab2726e76
@ -970,9 +970,9 @@ class Formula
|
|||||||
|
|
||||||
# The service specification of the software.
|
# The service specification of the software.
|
||||||
def service
|
def service
|
||||||
return Homebrew::Service.new(self, &self.class.service) if service?
|
return unless service?
|
||||||
|
|
||||||
nil
|
Homebrew::Service.new(self, &self.class.service)
|
||||||
end
|
end
|
||||||
|
|
||||||
# @private
|
# @private
|
||||||
|
|||||||
@ -111,14 +111,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
delegate [ # rubocop:disable Layout/HashAlignment
|
delegate [:bin, :var, :etc, :opt_bin, :opt_sbin, :opt_prefix] => :@formula
|
||||||
:bin,
|
|
||||||
:var,
|
|
||||||
:etc,
|
|
||||||
:opt_bin,
|
|
||||||
:opt_sbin,
|
|
||||||
:opt_prefix,
|
|
||||||
] => :@formula
|
|
||||||
|
|
||||||
sig { returns(String) }
|
sig { returns(String) }
|
||||||
def std_service_path_env
|
def std_service_path_env
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user