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

18 lines
379 B
Ruby
Raw Normal View History

2016-09-24 13:52:43 +02:00
module Hbc
class WithoutSource < 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
2016-08-18 22:11:42 +03:00
2016-09-24 13:52:43 +02:00
def to_s
"#{token} (!)"
end
2016-08-18 22:11:42 +03:00
2016-09-24 13:52:43 +02:00
def installed?
caskroom_path.exist?
end
2016-08-18 22:11:42 +03:00
end
end