brew/Library/Homebrew/cask/lib/hbc/source/untapped_qualified.rb

15 lines
288 B
Ruby
Raw Normal View History

2016-08-18 22:11:42 +03:00
require "hbc/source/tapped_qualified"
2016-09-24 13:52:43 +02:00
module Hbc
module Source
class UntappedQualified < TappedQualified
def self.me?(query)
return if (tap = tap_for_query(query)).nil?
2016-08-18 22:11:42 +03:00
2016-09-24 13:52:43 +02:00
tap.install
2016-10-08 13:25:38 +02:00
tap.installed? && Hbc.path(query).exist?
2016-09-24 13:52:43 +02:00
end
end
2016-08-18 22:11:42 +03:00
end
end