Merge pull request #5864 from morgo/brew-services

caveats: non-macOS platforms warn on services
This commit is contained in:
Mike McQuaid 2019-03-13 13:33:23 +00:00 committed by GitHub
commit af0bbc793e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,16 @@ class Caveats
EOS
end
def plist_caveats; end
def plist_caveats
return unless f.plist_manual
# Default to brew services not being supported. macOS overrides this behavior.
<<~EOS
#{Formatter.warning("Warning:")} #{f.name} provides a launchd plist which can only be used on macOS!
You can manually execute the service instead with:
#{f.plist_manual}
EOS
end
def plist_path
destination = if f.plist_startup