homebrew-cask-versions/lib/cask/without_source.rb
phinze 10db2d5d3c support non-ruby-backed casks
- 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)
2013-12-05 20:10:19 -06:00

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