homebrew-cask-versions/lib/cask/source/gone.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

15 lines
228 B
Ruby

class Cask::Source::Gone
def self.me?(query)
Cask::WithoutSource.new(query).installed?
end
attr_reader :query
def initialize(query)
@query = query
end
def load
Cask::WithoutSource.new(query)
end
end