brew/Library/Homebrew/cask/lib/hbc/locations.rb
2018-05-25 18:20:02 +02:00

33 lines
706 B
Ruby

module Hbc
module Locations
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def caskroom
@caskroom ||= HOMEBREW_PREFIX.join("Caskroom")
end
def cache
@cache ||= HOMEBREW_CACHE.join("Cask")
end
attr_writer :default_tap
def default_tap
@default_tap ||= Tap.fetch("homebrew", "homebrew-cask")
end
def tcc_db
@tcc_db ||= Pathname.new("/Library/Application Support/com.apple.TCC/TCC.db")
end
def pre_mavericks_accessibility_dotfile
@pre_mavericks_accessibility_dotfile ||= Pathname.new("/private/var/db/.AccessibilityAPIEnabled")
end
end
end
end