brew/Library/Homebrew/cask/lib/hbc/without_source.rb
AnastasiaSulyagina e81f4ab7de init
2016-08-19 14:50:14 +03:00

16 lines
348 B
Ruby

class Hbc::WithoutSource < Hbc::Cask
# Override from `Hbc::DSL` because we don't have a cask source file to work
# with, so we don't know the cask's `version`.
def staged_path
(caskroom_path.children - [metadata_master_container_path]).first
end
def to_s
"#{token} (!)"
end
def installed?
caskroom_path.exist?
end
end