formula: deprecate startup_plist.

Closes #228.
This commit is contained in:
Mike McQuaid 2016-05-13 08:45:37 +01:00
parent 77836cfb3f
commit aae447996c
2 changed files with 5 additions and 2 deletions

View File

@ -55,10 +55,14 @@ class Formula
end end
def python(_options = {}, &block) def python(_options = {}, &block)
opoo "Formula#python is deprecated and will go away shortly." opoo "Formula#python is deprecated."
block.call if block_given? block.call if block_given?
PythonRequirement.new PythonRequirement.new
end end
alias_method :python2, :python alias_method :python2, :python
alias_method :python3, :python alias_method :python3, :python
def startup_plist
opoo "startup_plist is deprecated: use plist instead."
end
end end

View File

@ -725,7 +725,6 @@ class Formula
def plist def plist
nil nil
end end
alias_method :startup_plist, :plist
# The generated launchd {.plist} service name. # The generated launchd {.plist} service name.
def plist_name def plist_name