caveats: non-macOS platforms warn on services

Only currently supported by macOS. Attempting to use services
should produce a warning for now.  It is possible it might be
supported in the future.
This commit is contained in:
Morgan Tocker 2019-03-11 13:59:34 -06:00
parent d8c6f6b120
commit a1f24748e6

View File

@ -136,7 +136,18 @@ class Caveats
EOS EOS
end end
def plist_caveats; end def plist_caveats
return unless f.plist_manual
# default to brew services not being supported.
# macOS will overwrite this behavior.
<<~EOS
#{Formatter.warning("Warning:")} #{f.name} wants to install a service, which is currently only supported on macOS!
You can manually execute the service with:
#{f.plist_manual}
EOS
end
def plist_path def plist_path
destination = if f.plist_startup destination = if f.plist_startup