mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-16 22:06:43 -06:00
- brew cask list now displays casks without backing ruby files - casks without a source are displayed as "caskname (!)" - these casks can be uninstalled, with the caveat that it only removes their files from the caskroom (doesn't run pkg uninstall or anything, since there's no ruby file to define what to do)
13 lines
185 B
Ruby
13 lines
185 B
Ruby
class Cask::WithoutSource < Cask
|
|
def destination_path
|
|
caskroom_path.children.first
|
|
end
|
|
|
|
def to_s
|
|
"#{title} (!)"
|
|
end
|
|
|
|
def installed?
|
|
caskroom_path.exist?
|
|
end
|
|
end
|