brew/Library/Homebrew/cask/lib/hbc/locations.rb

33 lines
706 B
Ruby
Raw Normal View History

2016-09-24 13:52:43 +02:00
module Hbc
module Locations
def self.included(base)
base.extend(ClassMethods)
2016-08-18 22:11:42 +03:00
end
2016-09-24 13:52:43 +02:00
module ClassMethods
def caskroom
2017-03-06 21:28:34 +01:00
@caskroom ||= HOMEBREW_PREFIX.join("Caskroom")
2016-08-18 22:11:42 +03:00
end
2016-09-24 13:52:43 +02:00
def cache
@cache ||= HOMEBREW_CACHE.join("Cask")
2016-09-24 13:52:43 +02:00
end
2016-08-18 22:11:42 +03:00
2016-09-24 13:52:43 +02:00
attr_writer :default_tap
2016-08-18 22:11:42 +03:00
2016-09-24 13:52:43 +02:00
def default_tap
2018-05-25 18:03:16 +02:00
@default_tap ||= Tap.fetch("homebrew", "homebrew-cask")
2016-09-24 13:52:43 +02:00
end
2016-08-18 22:11:42 +03:00
2016-09-24 13:52:43 +02:00
def tcc_db
@tcc_db ||= Pathname.new("/Library/Application Support/com.apple.TCC/TCC.db")
end
2016-08-18 22:11:42 +03:00
2016-09-24 13:52:43 +02:00
def pre_mavericks_accessibility_dotfile
@pre_mavericks_accessibility_dotfile ||= Pathname.new("/private/var/db/.AccessibilityAPIEnabled")
end
2016-08-18 22:11:42 +03:00
end
end
end