keg: add function to detect if .app(s) installed.
This commit is contained in:
parent
28ee01b622
commit
d8d76da55f
@ -96,6 +96,10 @@ class Keg < Pathname
|
|||||||
(self/'lib/python2.7/site-packages').directory?
|
(self/'lib/python2.7/site-packages').directory?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def app_installed?
|
||||||
|
not Dir.glob("#{self}/{,libexec/}*.app").empty?
|
||||||
|
end
|
||||||
|
|
||||||
def version
|
def version
|
||||||
require 'version'
|
require 'version'
|
||||||
Version.new(basename.to_s)
|
Version.new(basename.to_s)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user